mirror of
https://github.com/immich-app/immich.git
synced 2025-02-04 01:09:14 -05:00
fix(web): unused variables
This commit is contained in:
parent
4bf50a0b46
commit
586590e9ec
2 changed files with 12 additions and 11 deletions
|
@ -30,7 +30,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
q: value,
|
q: searchValue,
|
||||||
clip: clipSearch
|
clip: clipSearch
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -104,14 +104,17 @@
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-5 pt-5 text-xs flex justify-between">
|
|
||||||
<p>RECENT SEARCHES</p>
|
{#if $savedSearchTerms.length > 0}
|
||||||
<button
|
<div class="px-5 pt-5 text-xs flex justify-between">
|
||||||
type="button"
|
<p>RECENT SEARCHES</p>
|
||||||
class="text-immich-primary dark:text-immich-dark-primary font-semibold p-2 hover:bg-immich-primary/25 rounded-lg"
|
<button
|
||||||
on:click={clearSearchTerm}>Clear all</button
|
type="button"
|
||||||
>
|
class="text-immich-primary dark:text-immich-dark-primary font-semibold p-2 hover:bg-immich-primary/25 rounded-lg"
|
||||||
</div>
|
on:click={clearSearchTerm}>Clear all</button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#each $savedSearchTerms as savedSearchTerm, i (i)}
|
{#each $savedSearchTerms as savedSearchTerm, i (i)}
|
||||||
<button
|
<button
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import { writable } from 'svelte/store';
|
|
||||||
import { persisted } from 'svelte-local-storage-store';
|
import { persisted } from 'svelte-local-storage-store';
|
||||||
|
|
||||||
export const enableClip = writable<boolean>(false);
|
|
||||||
export const savedSearchTerms = persisted<string[]>('search-terms', [], {});
|
export const savedSearchTerms = persisted<string[]>('search-terms', [], {});
|
||||||
|
|
Loading…
Add table
Reference in a new issue