mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor: event manager (#17862)
* refactor: event manager * refactor: event manager
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import { eventManager } from '$lib/stores/event-manager.svelte';
|
||||
|
||||
class SearchStore {
|
||||
savedSearchTerms = $state<string[]>([]);
|
||||
isSearchEnabled = $state(false);
|
||||
|
||||
constructor() {
|
||||
eventManager.on('auth.logout', () => this.clearCache());
|
||||
}
|
||||
|
||||
clearCache() {
|
||||
this.savedSearchTerms = [];
|
||||
this.isSearchEnabled = false;
|
||||
|
||||
Reference in New Issue
Block a user