diff --git a/ts/editor/TagEditor.svelte b/ts/editor/TagEditor.svelte index f62db0f96..f7866de1e 100644 --- a/ts/editor/TagEditor.svelte +++ b/ts/editor/TagEditor.svelte @@ -10,7 +10,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import AddTagBadge from "./AddTagBadge.svelte"; import Tag from "./Tag.svelte"; import TagInput from "./TagInput.svelte"; - import TagAutocomplete from "./TagAutocomplete.svelte"; + import WithAutocomplete from "./WithAutocomplete.svelte"; import ButtonToolbar from "components/ButtonToolbar.svelte"; import type { Tag as TagType } from "./tags"; import { attachId, getName } from "./tags"; @@ -45,6 +45,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html } } + function updateSuggestions(): void {} + function updateWithTagName(tag: TagType): void { tag.name = activeName; tags = tags; @@ -217,11 +219,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html {#each tags as tag, index (tag.id)} {#if index === active} - - + {:else} - {#each displayed as tag, i} + {#each suggestions as suggestion, i}
{tag}{suggestion}
{/each}