mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 08:49:01 +03:00
fix: memory lane (#25652)
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
import { eventManager } from '$lib/managers/event-manager.svelte';
|
import { eventManager } from '$lib/managers/event-manager.svelte';
|
||||||
import type { TimelineAsset } from '$lib/managers/timeline-manager/types';
|
import type { TimelineAsset } from '$lib/managers/timeline-manager/types';
|
||||||
|
import { user } from '$lib/stores/user.store';
|
||||||
import { asLocalTimeISO } from '$lib/utils/date-time';
|
import { asLocalTimeISO } from '$lib/utils/date-time';
|
||||||
import { toTimelineAsset } from '$lib/utils/timeline-util';
|
import { toTimelineAsset } from '$lib/utils/timeline-util';
|
||||||
import { deleteMemory, type MemoryResponseDto, removeMemoryAssets, searchMemories, updateMemory } from '@immich/sdk';
|
import { deleteMemory, type MemoryResponseDto, removeMemoryAssets, searchMemories, updateMemory } from '@immich/sdk';
|
||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
|
import { get } from 'svelte/store';
|
||||||
|
|
||||||
type MemoryIndex = {
|
type MemoryIndex = {
|
||||||
memoryIndex: number;
|
memoryIndex: number;
|
||||||
@@ -27,6 +29,11 @@ class MemoryStoreSvelte {
|
|||||||
AuthLogout: () => this.clearCache(),
|
AuthLogout: () => this.clearCache(),
|
||||||
AuthUserLoaded: () => this.initialize(),
|
AuthUserLoaded: () => this.initialize(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// loaded event might have already happened
|
||||||
|
if (get(user)) {
|
||||||
|
void this.initialize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ready() {
|
ready() {
|
||||||
|
|||||||
Reference in New Issue
Block a user