diff --git a/src/routes/(app)/admin/+layout.svelte b/src/routes/(app)/admin/+layout.svelte index 757fc45d9..b0bd7dfc1 100644 --- a/src/routes/(app)/admin/+layout.svelte +++ b/src/routes/(app)/admin/+layout.svelte @@ -74,7 +74,7 @@ -
+
diff --git a/src/routes/(app)/admin/+page.svelte b/src/routes/(app)/admin/+page.svelte index 301df460d..091f4c051 100644 --- a/src/routes/(app)/admin/+page.svelte +++ b/src/routes/(app)/admin/+page.svelte @@ -19,6 +19,7 @@ import UserChatsModal from '$lib/components/admin/UserChatsModal.svelte'; import AddUserModal from '$lib/components/admin/AddUserModal.svelte'; import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte'; + import Badge from '$lib/components/common/Badge.svelte'; const i18n = getContext('i18n'); @@ -195,18 +196,7 @@ {/if} - setSortKey('oauth_sub')} - > - {$i18n.t('OAuth ID')} - {#if sortKey === 'oauth_sub'} - {sortOrder === 'asc' ? '▲' : '▼'} - {:else} - - {/if} - + + setSortKey('oauth_sub')} + > + {$i18n.t('OAuth ID')} + {#if sortKey === 'oauth_sub'} + {sortOrder === 'asc' ? '▲' : '▼'} + {:else} + + {/if} + + @@ -253,12 +256,8 @@ }) .slice((page - 1) * 20, page * 20) as user} - + + - +
{user.name}
- {user.email} + {user.email} - {user.oauth_sub ?? ''} - - + {dayjs(user.last_active_at * 1000).fromNow()} - + {dayjs(user.created_at * 1000).format($i18n.t('MMMM DD, YYYY'))} - + {user.oauth_sub ?? ''} + +
{#if $config.features.enable_admin_chat_access && user.role !== 'admin'}