diff --git a/src/lib/components/ui/tabs/FilterTabs.svelte b/src/lib/components/ui/tabs/FilterTabs.svelte
new file mode 100644
index 00000000..ed0e0762
--- /dev/null
+++ b/src/lib/components/ui/tabs/FilterTabs.svelte
@@ -0,0 +1,63 @@
+
+
+
+ {#if filters.size > 0}
+
+
+
+
+
+ {/if}
+ {#each uniqueIds as identifier}
+
+ {/each}
+
+
+
diff --git a/src/routes/accounts/+page.svelte b/src/routes/accounts/+page.svelte
index ec03fc4c..b3356d05 100644
--- a/src/routes/accounts/+page.svelte
+++ b/src/routes/accounts/+page.svelte
@@ -9,14 +9,9 @@
profile,
} from '$lib/auth.js'
import EditableList from '$lib/components/ui/list/EditableList.svelte'
- import { Menu, MenuButton, Modal, toast } from 'mono-svelte'
+ import { Menu, MenuButton, Modal } from 'mono-svelte'
import DebugObject from '$lib/components/util/debug/DebugObject.svelte'
- import {
- DEFAULT_INSTANCE_URL,
- LINKED_INSTANCE_URL,
- instance,
- } from '$lib/instance.js'
- import { validateInstance } from '$lib/lemmy.js'
+ import { DEFAULT_INSTANCE_URL, LINKED_INSTANCE_URL } from '$lib/instance.js'
import ProfileAvatar from '$lib/lemmy/ProfileAvatar.svelte'
import { userSettings } from '$lib/settings.js'
import { Button, TextInput } from 'mono-svelte'
@@ -30,20 +25,17 @@
ChevronDown,
ChevronUp,
EllipsisHorizontal,
- ExclamationTriangle,
Icon,
Identification,
PaintBrush,
Plus,
- Trash,
} from 'svelte-hero-icons'
import { flip } from 'svelte/animate'
- import { expoInOut, expoOut } from 'svelte/easing'
+ import { expoOut } from 'svelte/easing'
import { t } from '$lib/translations'
import Header from '$lib/components/ui/layout/pages/Header.svelte'
-
- let newInstance: string = $profileData.defaultInstance ?? DEFAULT_INSTANCE_URL
- let loading = false
+ import FilterTabs from '$lib/components/ui/tabs/FilterTabs.svelte'
+ import { fly } from 'svelte/transition'
let debugging = false
let debugProfile: Profile | undefined = undefined
@@ -53,7 +45,7 @@
account: undefined as Profile | undefined,
}
- let switching = -69
+ let switching = -2
@@ -136,136 +128,147 @@
{:else}
-
+
-
{
- removing.account = acc.detail
- removing.shown = !removing.shown
- }}
- let:action
- >
- {#each $profileData.profiles as profile, index (profile.id)}
-
-
-
-
-
+
+
+ {#if !LINKED_INSTANCE_URL}
+
+ {/if}
+
+
+
i.instance} let:items>
+ {
+ removing.account = acc.detail
+ removing.shown = !removing.shown
+ }}
+ let:action
+ >
+ {#each items as profile, index (profile.id)}
+
+
+
+
+
+ {profile.username}
+
+ {profile.instance}
+
-
-
- {profile.username}
-
- {profile.instance}
-
-
-
-
-
-
-
- {/each}
-
-
-
-
- {#if !LINKED_INSTANCE_URL}
-
- {/if}
-
+ {#if $userSettings.debugInfo}
+
{
+ debugProfile = profile
+ debugging = !debugging
+ }}
+ >
+
+ {$t('common.debug')}
+
+ {/if}
+ {#if !LINKED_INSTANCE_URL || profile.user}
+
action(profile)}
+ color="danger-subtle"
+ >
+
+ {$t('account.logout')}
+
+ {/if}
+
+
+ {/each}
+
+
{/if}