fixed eslint curly rule and add onTagAppend prop

This commit is contained in:
Amanda Sternberg 2025-11-21 10:34:50 +01:00
parent d64eddaadb
commit 7508021473
2 changed files with 4 additions and 2 deletions

View file

@ -18,7 +18,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export let onTagAppend: (() => void) | undefined;
function appendTag() {
if (onTagAppend) onTagAppend();
if (onTagAppend) {
onTagAppend();
}
}
</script>

View file

@ -21,7 +21,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
{#if tagsSelected}
<TagsSelectedButton on:tagselectall on:tagcopy on:tagdelete />
{:else}
<TagAddButton {keyCombination} />
<TagAddButton {keyCombination} onTagAppend={() => {}} />
{/if}
{/key}
</div>