mirror of
https://github.com/immich-app/immich.git
synced 2025-06-16 21:38:28 +02:00
refactor: event manager (#17862)
* refactor: event manager * refactor: event manager
This commit is contained in:
parent
e822e3eca9
commit
d0014bdf94
12 changed files with 127 additions and 47 deletions
web/src/lib/stores
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue