Add instance selection to modlog

This commit is contained in:
CmdrKeen committed 2023-11-27 15:39:22 -08:00
1 parent e5d7e7824e
commit 189a4e1e32
2 files changed
+19 -1

No files matched your search

+17
View File
@@ -74,6 +74,22 @@
</Select>
</div>
<div class="flex flex-col md:flex-row md:items-center gap-2 w-full">
<ObjectAutocomplete
type="instance"
placeholder="Filter by instance"
jwt={$profile?.jwt}
showWhenEmpty={true}
label="Instance"
class="flex-1"
q={$page.url.searchParams.get('instance') || ''}
on:select={(e) =>
searchParam(
$page.url,
'instance',
e.detail?.domain.toString() ?? '',
'page', 'community', 'user', 'mod_id'
)}
/>
<ObjectAutocomplete
placeholder="Filter by community"
jwt={$profile?.jwt}
@@ -91,6 +107,7 @@
)}
/>
<UserAutocomplete
instance={$page.url.searchParams.get('instance') || undefined}
placeholder="Filter by user"
jwt={$profile?.jwt}
listing_type="All"