mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00: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
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