{#if $profileData.profiles.length == 0}
No accounts
Log in
Change
{:else}
Accounts
{ $profileData.profiles = [] resetProfile() }} > Delete all
{ deleteProfile(id.detail) }} let:action > {#each $profileData.profiles as profile (profile.id)}
{profile.username}
{profile.instance}
{ if (profile.id == $currentProfile?.id) { setUserID(-1) } else { setUserID(profile.id) } }} color={profile.id == $currentProfile?.id ? 'primary' : 'secondary'} > {profile.id == $currentProfile?.id ? 'Current' : 'Switch to'}
action(profile.id)} class="!p-2" color="danger" >
{/each}
Guest
{ setUserID(-1) }} color={$currentProfile?.id == -1 ? 'primary' : 'secondary'} > {$currentProfile?.id == -1 ? 'Current' : 'Switch to'}
Change
Add more
{/if}