From c48b861596b890ec3276b867d9d6eaa68bd9fbd6 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 28 Jun 2021 15:37:05 +0200 Subject: [PATCH] Save deletions via delete icon to db --- ts/editor/TagEditor.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ts/editor/TagEditor.svelte b/ts/editor/TagEditor.svelte index 026ae6602..7faeaacae 100644 --- a/ts/editor/TagEditor.svelte +++ b/ts/editor/TagEditor.svelte @@ -242,11 +242,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html on:tagmovenext={() => moveToNextTag(index)} on:tagaccept={() => { deleteTagIfNotUnique(tag, index); - decideNextActive(); if (tag) { updateWithTagName(tag); } saveTags(); + decideNextActive(); }} /> @@ -255,7 +255,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html name={tag.name} bind:blink={tag.blink} on:click={() => (active = index)} - on:tagdelete={() => deleteTagAt(index)} + on:tagdelete={() => { + deleteTagAt(index); + saveTags(); + }} /> {/if} {/each}