High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): unused variables
Alex Tran586590e9ec87
diff --git a/web/src/lib/components/shared-components/search-bar/search-bar.svelte b/web/src/lib/components/shared-components/search-bar/search-bar.svelteindex 4f77c40dd8..615952a45c 100644--- a/web/src/lib/components/shared-components/search-bar/search-bar.svelte+++ b/web/src/lib/components/shared-components/search-bar/search-bar.svelte@@ -30,7 +30,7 @@}const params = new URLSearchParams({- q: value,+ q: searchValue,clip: clipSearch});@@ -104,14 +104,17 @@></p></div>- <div class="px-5 pt-5 text-xs flex justify-between">- <p>RECENT SEARCHES</p>- <button- type="button"- class="text-immich-primary dark:text-immich-dark-primary font-semibold p-2 hover:bg-immich-primary/25 rounded-lg"- on:click={clearSearchTerm}>Clear all</button- >- </div>++ {#if $savedSearchTerms.length > 0}+ <div class="px-5 pt-5 text-xs flex justify-between">+ <p>RECENT SEARCHES</p>+ <button+ type="button"+ class="text-immich-primary dark:text-immich-dark-primary font-semibold p-2 hover:bg-immich-primary/25 rounded-lg"+ on:click={clearSearchTerm}>Clear all</button+ >+ </div>+ {/if}{#each $savedSearchTerms as savedSearchTerm, i (i)}<buttondiff --git a/web/src/lib/stores/search.store.ts b/web/src/lib/stores/search.store.tsindex 00b908c19f..dbcfb921a9 100644--- a/web/src/lib/stores/search.store.ts+++ b/web/src/lib/stores/search.store.ts@@ -1,5 +1,3 @@-import { writable } from 'svelte/store';import { persisted } from 'svelte-local-storage-store';-export const enableClip = writable<boolean>(false);export const savedSearchTerms = persisted<string[]>('search-terms', [], {});