Merge pull request #1871 from gitbutlerapp/add-annotate-warning-back

Add annotate warning back
This commit is contained in:
Kiril Videlov 2023-11-30 18:04:31 +01:00 committed by GitHub
commit 7faebcd9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,14 +47,14 @@
return invoke<string>('git_get_global_config', params);
}
// let annotateCommits = true;
let annotateCommits = true;
// function checkCommitsAnnotated() {
// git_get_config({ key: 'gitbutler.utmostDiscretion' }).then((value) => {
// annotateCommits = value ? value === '0' : true;
// });
// }
// $: checkCommitsAnnotated();
function checkCommitsAnnotated() {
git_get_config({ key: 'gitbutler.utmostDiscretion' }).then((value) => {
annotateCommits = value ? value === '0' : true;
});
}
$: checkCommitsAnnotated();
let isGeneratingCommigMessage = false;
async function generateCommitMessage(files: File[]) {
@ -103,8 +103,8 @@
</script>
<div class="commit-box" transition:slide={{ duration: 150 }}>
<!-- {#if annotateCommits}
<div class="bg-blue-400 p-2 text-sm text-white">
{#if annotateCommits}
<div class="rounded bg-blue-400 p-2 text-sm text-white">
GitButler will be the committer of this commit.
<a
target="_blank"
@ -113,7 +113,7 @@
href="https://docs.gitbutler.com/features/virtual-branches/committer-mark">Learn more</a
>
</div>
{/if} -->
{/if}
<TextArea bind:value={commitMessage} rows={messageRows} placeholder="Your commit message here" />
<div class="actions">
<Tooltip