High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): load day group in asset viewer (#19523)
Daimolean4621ec5ea28f
diff --git a/web/src/lib/components/photos-page/asset-grid.svelte b/web/src/lib/components/photos-page/asset-grid.svelteindex ac6ec8906a..cf8f0fb879 100644--- a/web/src/lib/components/photos-page/asset-grid.svelte+++ b/web/src/lib/components/photos-page/asset-grid.svelte@@ -30,7 +30,12 @@import { deleteAssets, updateStackedAssetInTimeline, updateUnstackedAssetInTimeline } from '$lib/utils/actions';import { archiveAssets, cancelMultiselect, selectAllAssets, stackAssets } from '$lib/utils/asset-utils';import { navigate } from '$lib/utils/navigation';- import { toTimelineAsset, type ScrubberListener, type TimelinePlainYearMonth } from '$lib/utils/timeline-util';+ import {+ getTimes,+ toTimelineAsset,+ type ScrubberListener,+ type TimelinePlainYearMonth,+ } from '$lib/utils/timeline-util';import { AssetVisibility, getAssetInfo, type AlbumResponseDto, type PersonResponseDto } from '@immich/sdk';import { DateTime } from 'luxon';import { onMount, type Snippet } from 'svelte';@@ -768,6 +773,13 @@void selectAssetCandidates(lastAssetMouseEvent);}});++ $effect(() => {+ if ($showAssetViewer) {+ const { localDateTime } = getTimes($viewingAsset.fileCreatedAt, DateTime.local().offset / 60);+ void timelineManager.loadMonthGroup({ year: localDateTime.year, month: localDateTime.month });+ }+ });</script><svelte:document onkeydown={onKeyDown} onkeyup={onKeyUp} onselectstart={onSelectStart} use:shortcuts={shortcutList} />