feat(web): Add "set as featured" option for an asset ()

This commit is contained in:
Ben 2024-12-23 19:26:53 +01:00 committed by GitHub
parent c3be74c450
commit b88f98bf66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 46 additions and 1 deletions
web/src/lib/components/photos-page

View file

@ -19,7 +19,7 @@
type ScrollTargetListener,
} from '$lib/utils/timeline-util';
import { TUNABLES } from '$lib/utils/tunables';
import type { AlbumResponseDto, AssetResponseDto } from '@immich/sdk';
import type { AlbumResponseDto, AssetResponseDto, PersonResponseDto } from '@immich/sdk';
import { throttle } from 'lodash-es';
import { onDestroy, onMount, type Snippet } from 'svelte';
import Portal from '../shared-components/portal/portal.svelte';
@ -52,6 +52,7 @@
showArchiveIcon?: boolean;
isShared?: boolean;
album?: AlbumResponseDto | null;
person?: PersonResponseDto | null;
isShowDeleteConfirmation?: boolean;
onSelect?: (asset: AssetResponseDto) => void;
onEscape?: () => void;
@ -70,6 +71,7 @@
showArchiveIcon = false,
isShared = false,
album = null,
person = null,
isShowDeleteConfirmation = $bindable(false),
onSelect = () => {},
onEscape = () => {},
@ -914,6 +916,7 @@
preloadAssets={$preloadAssets}
{isShared}
{album}
{person}
onAction={handleAction}
onPrevious={handlePrevious}
onNext={handleNext}