misc: use select for moderation menu
This commit is contained in:
1 parent
791aa7b3cf
commit
be4380c7bd
1 file changed
+19
-8
@@ -4,10 +4,16 @@
|
|||||||
import Report from './Report.svelte'
|
import Report from './Report.svelte'
|
||||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||||
import { page } from '$app/stores'
|
import { page } from '$app/stores'
|
||||||
import { EnvelopeOpen, Icon, Inbox, Newspaper } from 'svelte-hero-icons'
|
import {
|
||||||
|
EnvelopeOpen,
|
||||||
|
Funnel,
|
||||||
|
Icon,
|
||||||
|
Inbox,
|
||||||
|
Newspaper,
|
||||||
|
} from 'svelte-hero-icons'
|
||||||
import Placeholder from '$lib/components/ui/Placeholder.svelte'
|
import Placeholder from '$lib/components/ui/Placeholder.svelte'
|
||||||
import { searchParam } from '$lib/util.js'
|
import { searchParam } from '$lib/util.js'
|
||||||
import { Button, Material } from 'mono-svelte'
|
import { Button, Material, Select } from 'mono-svelte'
|
||||||
|
|
||||||
export let data
|
export let data
|
||||||
</script>
|
</script>
|
||||||
@@ -15,12 +21,17 @@
|
|||||||
<div class="mb-4 flex flex-col gap-4">
|
<div class="mb-4 flex flex-col gap-4">
|
||||||
<h1 class="font-bold text-2xl">Reports</h1>
|
<h1 class="font-bold text-2xl">Reports</h1>
|
||||||
<div class="flex flex-row gap-2 flex-wrap items-center">
|
<div class="flex flex-row gap-2 flex-wrap items-center">
|
||||||
<MultiSelect
|
<Select
|
||||||
selected={data.type}
|
bind:value={data.type}
|
||||||
options={['all', 'unread']}
|
on:change={() => searchParam($page.url, 'type', data.type, 'page')}
|
||||||
optionNames={['All', 'Unread']}
|
>
|
||||||
on:select={(e) => searchParam($page.url, 'type', e.detail, 'page')}
|
<span slot="label" class="flex items-center gap-1">
|
||||||
/>
|
<Icon src={Funnel} size="15" mini />
|
||||||
|
Filter
|
||||||
|
</span>
|
||||||
|
<option value="all">All</option>
|
||||||
|
<option value="unread">Unread</option>
|
||||||
|
</Select>
|
||||||
<Button href="/modlog" class="h-max ml-auto">
|
<Button href="/modlog" class="h-max ml-auto">
|
||||||
<Icon src={Newspaper} size="16" mini />
|
<Icon src={Newspaper} size="16" mini />
|
||||||
Modlog
|
Modlog
|
||||||
|
|||||||
Reference in new issue
Block a user