feat: Add default sorts
This commit is contained in:
1 parent
75a7e87110
commit
123336871d
6 files changed
+49
-8
No files matched your search
@@ -8,6 +8,7 @@
|
||||
import Button from '$lib/components/input/Button.svelte'
|
||||
import { ToastType, toast } from '$lib/components/ui/toasts/toasts.js'
|
||||
import Setting from './Setting.svelte'
|
||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||
|
||||
let data = {
|
||||
newInstance: $instance,
|
||||
@@ -70,6 +71,27 @@
|
||||
</div>
|
||||
</div>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<span slot="title">Default sort</span>
|
||||
<span slot="description">The default sort to use for feeds.</span>
|
||||
<div class="flex flex-wrap flex-row gap-4">
|
||||
<div>
|
||||
<span class="block my-1 font-bold">Feed</span>
|
||||
<MultiSelect
|
||||
options={['Subscribed', 'Local', 'All']}
|
||||
bind:selected={$userSettings.defaultSort.feed}
|
||||
/>
|
||||
</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}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</Setting>
|
||||
<h2 class="uppercase font-bold opacity-80 text-sm mt-4">UI</h2>
|
||||
<Setting>
|
||||
<span slot="title">Mark read posts</span>
|
||||
|
||||
Reference in new issue
Block a user