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; export let onTagAppend: (() => void) | undefined;
function appendTag() { function appendTag() {
if (onTagAppend) onTagAppend(); if (onTagAppend) {
onTagAppend();
}
} }
</script> </script>

View file

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