mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -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;
|
export let onTagAppend: (() => void) | undefined;
|
||||||
|
|
||||||
function appendTag() {
|
function appendTag() {
|
||||||
if (onTagAppend) onTagAppend();
|
if (onTagAppend) {
|
||||||
|
onTagAppend();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue