feat: add sort to settings

This commit is contained in:
Xyphyn committed 2023-08-04 14:40:39 -07:00
1 parent dc1aba6c17
commit 2c4826e745
3 files changed
+9 -8

No files matched your search

+2 -5
View File
@@ -13,6 +13,7 @@
import { toast } from '$lib/components/ui/toasts/toasts.js'
import Setting from './Setting.svelte'
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
import Sort from '$lib/components/lemmy/Sort.svelte'
let data = {
loading: false,
@@ -39,11 +40,7 @@
</div>
<div>
<span class="block my-1 font-bold">Sort</span>
<MultiSelect
options={['Active', 'Hot', 'TopAll', 'New']}
optionNames={['Active', 'Hot', 'Top', 'New']}
bind:selected={$userSettings.defaultSort.sort}
/>
<Sort bind:selected={$userSettings.defaultSort.sort} navigate={false} />
</div>
</div>
</Setting>