mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-30 01:17:37 +03:00
Merge pull request #1871 from gitbutlerapp/add-annotate-warning-back
Add annotate warning back
This commit is contained in:
commit
7faebcd9ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user