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:
parent
3b7033396a
commit
34197f838c
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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)}
|
||||
|
|
Loading…
Reference in a new issue