1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-17 01:06:46 +01:00

feat(web): create tags on the fly

a
This commit is contained in:
MehringTing 2024-12-16 14:20:01 +08:00
parent 3b7033396a
commit 34197f838c
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@
selectedIds.add(option.value);
} else {
const [newTag] = await upsertTags({ tagUpsertDto: { tags: [option.label] } });
allTags = await getAllTags();
allTags.push(newTag);
selectedIds.add(newTag.id);
}
};

View file

@ -362,7 +362,7 @@
id={`${listboxId}-${0}`}
onclick={() => closeDropdown()}
>
{allowCreate ? searchQuery : 112}
{allowCreate ? searchQuery : $t('no_results')}
</li>
{/if}
{#each filteredOptions as option, index (option.id || option.label)}