[FA-misc] Switches to using DTOs, updates frontend with details and reader page, updates novel import to be an upsert
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
|
||||
let isOpen = $state(false);
|
||||
|
||||
const email = $derived(
|
||||
$user?.profile?.email ??
|
||||
const name = $derived(
|
||||
$user?.profile?.name ??
|
||||
$user?.profile?.preferred_username ??
|
||||
$user?.profile?.name ??
|
||||
$user?.profile?.email ??
|
||||
$user?.profile?.sub ??
|
||||
'User'
|
||||
);
|
||||
@@ -38,7 +38,7 @@
|
||||
{:else if $user}
|
||||
<div class="auth-dropdown relative">
|
||||
<Button variant="outline" onclick={toggleDropdown}>
|
||||
{email}
|
||||
{name}
|
||||
</Button>
|
||||
{#if isOpen}
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user