mirror of
https://github.com/ankitects/anki.git
synced 2026-01-05 18:13:56 -05:00
Merge 6347a25711 into 62252f7216
This commit is contained in:
commit
977ca5ea17
3 changed files with 7 additions and 5 deletions
|
|
@ -255,6 +255,7 @@ Ranjit Odedra <ranjitodedra.dev@gmail.com>
|
|||
Eltaurus <https://github.com/Eltaurus-Lt>
|
||||
jariji
|
||||
Francisco Esteva <fr.esteva@duocuc.cl>
|
||||
AmandaSternberg-creator <amandasternberg2001@gmail.com>
|
||||
|
||||
********************
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
<script lang="ts">
|
||||
import * as tr from "@generated/ftl";
|
||||
import { getPlatformString } from "@tslib/shortcuts";
|
||||
import { createEventDispatcher } from "svelte";
|
||||
|
||||
import Icon from "$lib/components/Icon.svelte";
|
||||
import IconConstrain from "$lib/components/IconConstrain.svelte";
|
||||
|
|
@ -16,10 +15,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
|
||||
export let keyCombination: string;
|
||||
|
||||
const dispatch = createEventDispatcher<{ tagappend: null }>();
|
||||
export let onTagAppend: (() => void) | undefined;
|
||||
|
||||
function appendTag() {
|
||||
dispatch("tagappend");
|
||||
if (onTagAppend) {
|
||||
onTagAppend();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
@ -43,7 +44,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
</span>
|
||||
</div>
|
||||
|
||||
<Shortcut {keyCombination} on:action={() => dispatch("tagappend")} />
|
||||
<Shortcut {keyCombination} on:action={appendTag} />
|
||||
|
||||
<style lang="scss">
|
||||
.tag-add-button {
|
||||
|
|
|
|||
|
|
@ -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 on:tagappend {keyCombination} />
|
||||
<TagAddButton {keyCombination} onTagAppend={() => {}} />
|
||||
{/if}
|
||||
{/key}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue