mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 17:25:35 +03:00
refactor: event manager (#17862)
* refactor: event manager * refactor: event manager
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { eventManager } from '$lib/stores/event-manager.svelte';
|
||||
import {
|
||||
getAssetsByOriginalPath,
|
||||
getUniqueOriginalPaths,
|
||||
@@ -16,6 +17,10 @@ class FoldersStore {
|
||||
uniquePaths = $state<string[]>([]);
|
||||
assets = $state<AssetCache>({});
|
||||
|
||||
constructor() {
|
||||
eventManager.on('auth.logout', () => this.clearCache());
|
||||
}
|
||||
|
||||
async fetchUniquePaths() {
|
||||
if (this.initialized) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user