{ deleteUserHandler(selectedUser.id); }} /> {#key selectedUser} { users = await getUsers(localStorage.token); }} /> {/key} { users = await getUsers(localStorage.token); }} /> {#if loaded}
{$i18n.t('Users')}
{users.length}
{#each filteredUsers as user, userIdx} {/each}
setSortKey('role')} >
{$i18n.t('Role')} {#if sortKey === 'role'} {#if sortOrder === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('name')} >
{$i18n.t('Name')} {#if sortKey === 'name'} {#if sortOrder === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('email')} >
{$i18n.t('Email')} {#if sortKey === 'email'} {#if sortOrder === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('last_active_at')} >
{$i18n.t('Last Active')} {#if sortKey === 'last_active_at'} {#if sortOrder === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('created_at')} >
{$i18n.t('Created at')} {#if sortKey === 'created_at'} {#if sortOrder === 'asc'} {:else} {/if} {:else} {/if}
setSortKey('oauth_sub')} >
{$i18n.t('OAuth ID')} {#if sortKey === 'oauth_sub'} {#if sortOrder === 'asc'} {:else} {/if} {:else} {/if}
user
{user.name}
{user.email} {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'} {/if} {#if user.role !== 'admin'} {/if}
ⓘ {$i18n.t("Click on the user role button to change a user's role.")}
{/if}