mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +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>
|
</script>
|
||||||
|
|
||||||
<FullScreenModal title={$t('tag_assets')} icon={mdiTag} onClose={onCancel}>
|
<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">
|
<form {onsubmit} autocomplete="off" id="create-tag-form">
|
||||||
<div class="my-4 flex flex-col gap-2">
|
<div class="my-4 flex flex-col gap-2">
|
||||||
<Combobox
|
<Combobox
|
||||||
|
|
|
@ -36,7 +36,13 @@
|
||||||
options?: ComboBoxOption[];
|
options?: ComboBoxOption[];
|
||||||
selectedOption?: ComboBoxOption | undefined;
|
selectedOption?: ComboBoxOption | undefined;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
|
/**
|
||||||
|
* whether creating new items is allowed.
|
||||||
|
*/
|
||||||
allowCreate?: boolean;
|
allowCreate?: boolean;
|
||||||
|
/**
|
||||||
|
* select first matching option on enter key.
|
||||||
|
*/
|
||||||
defaultFirstOption?: boolean;
|
defaultFirstOption?: boolean;
|
||||||
onSelect?: (option: ComboBoxOption | undefined) => void;
|
onSelect?: (option: ComboBoxOption | undefined) => void;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue