- {#snippet children({ action })}
- {#each items as profile, index (profile.id)}
-
{
+ if (profile.id != $currentProfile?.id) {
+ switching = profile.id
+ await setUserID(profile.id)
+ switching = -69
+ }
+ }}
+ size="square-md"
+ color={profile.id == $currentProfile?.id ? 'primary' : 'ghost'}
+ loading={switching == profile.id}
+ disabled={switching == profile.id}
+ rounding="pill"
+ >
+ {#snippet prefix()}
+ {#if profile.id == $currentProfile?.id}
+
+ {:else}
+
+ {/if}
+ {/snippet}
+
+
+
+
+ {profile.username}
+
+ {profile.instance}
+
+
+
+
+
+ {#if settings.debugInfo}
+
{
+ debugProfile = profile
+ debugging = !debugging
+ }}
+ >
+ {#snippet prefix()}
+
+ {/snippet}
+ {$t('common.debug')}
+
+ {/if}
+ {#if !LINKED_INSTANCE_URL || profile.user}
+
{
+ removing.account = profile
+ removing.shown = !removing.shown
+ }}
+ color="danger-subtle"
+ >
+ {#snippet prefix()}
+
+ {/snippet}
+ {$t('account.logout')}
+
+ {/if}
+
+