mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
Save deletions via delete icon to db
This commit is contained in:
parent
5575482e38
commit
c48b861596
1 changed files with 5 additions and 2 deletions
|
|
@ -242,11 +242,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
on:tagmovenext={() => moveToNextTag(index)}
|
on:tagmovenext={() => moveToNextTag(index)}
|
||||||
on:tagaccept={() => {
|
on:tagaccept={() => {
|
||||||
deleteTagIfNotUnique(tag, index);
|
deleteTagIfNotUnique(tag, index);
|
||||||
decideNextActive();
|
|
||||||
if (tag) {
|
if (tag) {
|
||||||
updateWithTagName(tag);
|
updateWithTagName(tag);
|
||||||
}
|
}
|
||||||
saveTags();
|
saveTags();
|
||||||
|
decideNextActive();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</TagAutocomplete>
|
</TagAutocomplete>
|
||||||
|
|
@ -255,7 +255,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
name={tag.name}
|
name={tag.name}
|
||||||
bind:blink={tag.blink}
|
bind:blink={tag.blink}
|
||||||
on:click={() => (active = index)}
|
on:click={() => (active = index)}
|
||||||
on:tagdelete={() => deleteTagAt(index)}
|
on:tagdelete={() => {
|
||||||
|
deleteTagAt(index);
|
||||||
|
saveTags();
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue