Skip to content

Commit

Permalink
clean unused code and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MehringTing committed Dec 24, 2024
1 parent 7ac54bc commit 1603458
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 0 additions & 11 deletions web/src/lib/components/forms/tag-asset-form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions web/src/lib/components/shared-components/combobox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1603458

Please sign in to comment.