|
8 | 8 | import Skeleton from '$lib/components/photos-page/skeleton.svelte';
|
9 | 9 | import Scrubber from '$lib/components/shared-components/scrubber/scrubber.svelte';
|
10 | 10 | import { AssetAction } from '$lib/constants';
|
| 11 | + import { authManager } from '$lib/managers/auth-manager.svelte'; |
| 12 | + import { modalManager } from '@immich/ui'; |
11 | 13 | import type { MonthGroup } from '$lib/managers/timeline-manager/month-group.svelte';
|
12 | 14 | import { TimelineManager } from '$lib/managers/timeline-manager/timeline-manager.svelte';
|
13 | 15 | import type { TimelineAsset } from '$lib/managers/timeline-manager/types';
|
14 | 16 | import type { AssetInteraction } from '$lib/stores/asset-interaction.svelte';
|
15 | 17 | import { assetViewingStore } from '$lib/stores/asset-viewing.store';
|
16 | 18 | import { mobileDevice } from '$lib/stores/mobile-device.svelte';
|
17 | 19 | import { navigate } from '$lib/utils/navigation';
|
18 |
| - import { type ScrubberListener, type TimelinePlainYearMonth } from '$lib/utils/timeline-util'; |
| 20 | + import { getTimes, type ScrubberListener, type TimelinePlainYearMonth } from '$lib/utils/timeline-util'; |
19 | 21 | import { AssetVisibility, type AlbumResponseDto, type PersonResponseDto } from '@immich/sdk';
|
20 | 22 | import { DateTime } from 'luxon';
|
21 | 23 | import { onMount, type Snippet } from 'svelte';
|
|
69 | 71 | empty,
|
70 | 72 | }: Props = $props();
|
71 | 73 |
|
72 |
| - let { isViewing: showAssetViewer, gridScrollTarget, mutex, viewingAsset} = assetViewingStore; |
| 74 | + let { isViewing: showAssetViewer, gridScrollTarget, mutex, asset: viewingAsset} = assetViewingStore; |
73 | 75 |
|
74 | 76 | let element: HTMLElement | undefined = $state();
|
75 | 77 |
|
|
500 | 502 | </section>
|
501 | 503 | </section>
|
502 | 504 |
|
| 505 | +<Portal target="body"> |
| 506 | + {#if $showAssetViewer} |
| 507 | + <AssetViewerAndActions |
| 508 | + bind:showSkeleton |
| 509 | + {timelineManager} |
| 510 | + {removeAction} |
| 511 | + {withStacked} |
| 512 | + {isShared} |
| 513 | + {album} |
| 514 | + {person} |
| 515 | + {isShowDeleteConfirmation} |
| 516 | + ></AssetViewerAndActions> |
| 517 | + {/if} |
| 518 | + </Portal> |
| 519 | + |
503 | 520 | <style>
|
504 | 521 | #asset-grid {
|
505 | 522 | contain: strict;
|
|
0 commit comments