mirror of
https://github.com/immich-app/immich.git
synced 2025-06-16 21:38:28 +02:00
fix(web): reset search history after logout (#17534)
fix(web): reset search suggestions after logout
This commit is contained in:
parent
75c83cb704
commit
92f0973a46
7 changed files with 41 additions and 28 deletions
web/src/lib/stores
13
web/src/lib/stores/search.svelte.ts
Normal file
13
web/src/lib/stores/search.svelte.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
class SearchStore {
|
||||
savedSearchTerms = $state<string[]>([]);
|
||||
isSearchEnabled = $state(false);
|
||||
preventRaceConditionSearchBar = $state(false);
|
||||
|
||||
clearCache() {
|
||||
this.savedSearchTerms = [];
|
||||
this.isSearchEnabled = false;
|
||||
this.preventRaceConditionSearchBar = false;
|
||||
}
|
||||
}
|
||||
|
||||
export const searchStore = new SearchStore();
|
Loading…
Add table
Add a link
Reference in a new issue