mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
fixed eslint curly rule and add onTagAppend prop
This commit is contained in:
parent
d64eddaadb
commit
7508021473
2 changed files with 4 additions and 2 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue