mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 06:31:58 +00:00
Merge pull request #2 from MehringTing/feat/create-tag-on-the-fly
clean unused code and add comments
This commit is contained in:
commit
528ece2fac
2 changed files with 6 additions and 11 deletions
|
@ -53,17 +53,6 @@
|
|||
</script>
|
||||
|
||||
<FullScreenModal title={$t('tag_assets')} icon={mdiTag} onClose={onCancel}>
|
||||
<div class="text-sm">
|
||||
<p>
|
||||
<!-- <FormatMessage key="tag_not_found_question">
|
||||
{#snippet children({ message })}
|
||||
<a href={AppRoute.TAGS} class="text-immich-primary dark:text-immich-dark-primary underline">
|
||||
{message}
|
||||
</a>
|
||||
{/snippet}
|
||||
</FormatMessage> -->
|
||||
</p>
|
||||
</div>
|
||||
<form {onsubmit} autocomplete="off" id="create-tag-form">
|
||||
<div class="my-4 flex flex-col gap-2">
|
||||
<Combobox
|
||||
|
|
|
@ -36,7 +36,13 @@
|
|||
options?: ComboBoxOption[];
|
||||
selectedOption?: ComboBoxOption | undefined;
|
||||
placeholder?: string;
|
||||
/**
|
||||
* whether creating new items is allowed.
|
||||
*/
|
||||
allowCreate?: boolean;
|
||||
/**
|
||||
* select first matching option on enter key.
|
||||
*/
|
||||
defaultFirstOption?: boolean;
|
||||
onSelect?: (option: ComboBoxOption | undefined) => void;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue