2024-11-14 08:43:25 -06:00
|
|
|
<script lang="ts" module>
|
2024-02-26 22:45:08 +01:00
|
|
|
export interface SearchDisplayFilters {
|
2025-05-16 14:13:39 -04:00
|
|
|
isNotInAlbum: boolean;
|
|
|
|
|
isArchive: boolean;
|
|
|
|
|
isFavorite: boolean;
|
2024-02-26 22:45:08 +01:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
2025-05-16 14:13:39 -04:00
|
|
|
import { Checkbox, Label } from '@immich/ui';
|
|
|
|
|
|
2024-06-04 21:53:00 +02:00
|
|
|
import { t } from 'svelte-i18n';
|
2024-04-26 06:18:19 +00:00
|
|
|
|
2024-11-14 08:43:25 -06:00
|
|
|
interface Props {
|
|
|
|
|
filters: SearchDisplayFilters;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let { filters = $bindable() }: Props = $props();
|
2024-02-26 22:45:08 +01:00
|
|
|
</script>
|
|
|
|
|
|
2024-04-26 06:18:19 +00:00
|
|
|
<div id="display-options-selection">
|
|
|
|
|
<fieldset>
|
2025-09-16 00:28:42 -03:00
|
|
|
<legend class="uppercase immich-form-label">{$t('display_options')}</legend>
|
2024-04-26 06:18:19 +00:00
|
|
|
<div class="flex flex-wrap gap-x-5 gap-y-2 mt-1">
|
2025-05-16 14:13:39 -04:00
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<Checkbox id="not-in-album-checkbox" size="tiny" bind:checked={filters.isNotInAlbum} />
|
|
|
|
|
<Label label={$t('not_in_any_album')} for="not-in-album-checkbox" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<Checkbox id="archive-checkbox" size="tiny" bind:checked={filters.isArchive} />
|
|
|
|
|
<Label label={$t('archive')} for="archive-checkbox" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<Checkbox id="favorites-checkbox" size="tiny" bind:checked={filters.isFavorite} />
|
|
|
|
|
<Label label={$t('favorites')} for="favorites-checkbox" />
|
|
|
|
|
</div>
|
2024-04-26 06:18:19 +00:00
|
|
|
</div>
|
|
|
|
|
</fieldset>
|
2024-02-26 22:45:08 +01:00
|
|
|
</div>
|