1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-27 05:11:11 +02:00

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

This commit is contained in:
Ben
2024-12-23 19:26:53 +01:00
committed by GitHub
parent c3be74c450
commit b88f98bf66
6 changed files with 46 additions and 1 deletions

View File

@ -30,6 +30,7 @@
type ActivityResponseDto,
type AlbumResponseDto,
type AssetResponseDto,
type PersonResponseDto,
type StackResponseDto,
} from '@immich/sdk';
import { onDestroy, onMount, untrack } from 'svelte';
@ -56,6 +57,7 @@
withStacked?: boolean;
isShared?: boolean;
album?: AlbumResponseDto | null;
person?: PersonResponseDto | null;
onAction?: OnAction | undefined;
reactions?: ActivityResponseDto[];
onClose: (dto: { asset: AssetResponseDto }) => void;
@ -72,6 +74,7 @@
withStacked = false,
isShared = false,
album = null,
person = null,
onAction = undefined,
reactions = $bindable([]),
onClose,
@ -429,6 +432,7 @@
<AssetViewerNavBar
{asset}
{album}
{person}
{stack}
showDetailButton={enableDetailPanel}
showSlideshow={!!assetStore}