Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal committed Mar 12, 2024
1 parent be1c39e commit 70c2261
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions web/src/lib/components/album-page/album-options.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[AssetOrder.Desc]: { icon: mdiArrowDownThin, title: 'Descending' },
};
$: selectedOption = options[album.order];
$: selectedOption = album.order ? options[album.order] : options[AssetOrder.Desc];
const dispatch = createEventDispatcher<{
close: void;
Expand Down Expand Up @@ -72,12 +72,14 @@
<div class="py-2">
<h2 class="text-gray text-sm mb-2">SETTINGS</h2>
<div class="grid p-2 gap-y-2">
<SettingDropdown
title="Direction"
options={Object.values(options)}
selectedOption={options[album.order]}
onToggle={(option) => handleToggle(option)}
/>
{#if album.order}
<SettingDropdown
title="Direction"
options={Object.values(options)}
selectedOption={options[album.order]}
onToggle={(option) => handleToggle(option)}
/>
{/if}
<SettingSwitch
title="Comments & likes"
subtitle="Let others respond"
Expand Down

0 comments on commit 70c2261

Please sign in to comment.