diff --git a/package.json b/package.json index a947d639..404ff2cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photon-lemmy", - "version": "1.16.4", + "version": "1.16.5", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/routes/accounts/+page.svelte b/src/routes/accounts/+page.svelte index 7798d1f8..be0bddd4 100644 --- a/src/routes/accounts/+page.svelte +++ b/src/routes/accounts/+page.svelte @@ -9,7 +9,7 @@ profile, } from '$lib/auth.js' import EditableList from '$lib/components/ui/list/EditableList.svelte' - import { Menu, MenuButton, toast } from 'mono-svelte' + import { Menu, MenuButton, Modal, toast } from 'mono-svelte' import DebugObject from '$lib/components/util/debug/DebugObject.svelte' import { DEFAULT_INSTANCE_URL, @@ -24,9 +24,11 @@ ArrowLeftOnRectangle, ArrowUturnLeft, BugAnt, + Check, ChevronDown, ChevronUp, EllipsisHorizontal, + ExclamationTriangle, Icon, Identification, PaintBrush, @@ -72,6 +74,13 @@ let debugging = false let debugProfile: Profile | undefined = undefined + + let removing = { + shown: false, + account: undefined as Profile | undefined, + } + + let switching = -69 @@ -92,6 +101,43 @@ {/if} +{#if removing.shown && removing.account} + + Removing Account +
+ + +
+ {removing.account.username} + + {removing.account.instance} + +
+
+

This removes the account from Photon, it does not delete the account.

+
+ + +
+
+{/if} + {#if $profileData.profiles.length == 0}
Accounts
{ - deleteProfile(id.detail) + on:action={(acc) => { + removing.account = acc.detail + removing.shown = !removing.shown }} let:action > @@ -178,6 +225,27 @@
+ - -
{/each}