mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): album perf query (#5232)
* Revert "fix: album performances (#5224)" This reverts commitc438e17954. * Revert "fix: album sorting options (#5127)" This reverts commit725f30c494.
This commit is contained in:
parent
a13052e24c
commit
f094ff2aa1
13 changed files with 108 additions and 184 deletions
|
|
@ -5,10 +5,10 @@
|
|||
export let option: Sort;
|
||||
|
||||
const handleSort = () => {
|
||||
if (albumViewSettings === option.title) {
|
||||
if (albumViewSettings === option.sortTitle) {
|
||||
option.sortDesc = !option.sortDesc;
|
||||
} else {
|
||||
albumViewSettings = option.title;
|
||||
albumViewSettings = option.sortTitle;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -18,12 +18,12 @@
|
|||
class="rounded-lg p-2 hover:bg-immich-dark-primary hover:dark:bg-immich-dark-primary/50"
|
||||
on:click={() => handleSort()}
|
||||
>
|
||||
{#if albumViewSettings === option.title}
|
||||
{#if albumViewSettings === option.sortTitle}
|
||||
{#if option.sortDesc}
|
||||
↓
|
||||
{:else}
|
||||
↑
|
||||
{/if}
|
||||
{/if}{option.title}</button
|
||||
{/if}{option.table}</button
|
||||
></th
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue