diff --git a/src/routes/console/_deleteOrganization.svelte b/src/routes/console/_deleteOrganization.svelte new file mode 100644 index 000000000..b6050103a --- /dev/null +++ b/src/routes/console/_deleteOrganization.svelte @@ -0,0 +1,42 @@ + + +
+ + Delete Organization +

+ Are you sure you want to delete {$organization.name}? All projects ({$organization.total}) + and data associated with this organization will be deleted. This action is irreversible. +

+ + + + +
+
diff --git a/src/routes/console/members@intro.svelte b/src/routes/console/members@intro.svelte index 65aeaed28..1dbf21e45 100644 --- a/src/routes/console/members@intro.svelte +++ b/src/routes/console/members@intro.svelte @@ -15,7 +15,7 @@ import Delete from './_deleteMember.svelte'; import Create from './_createMember.svelte'; import { organization, memberList } from './store'; - import { sdkForProject } from '$lib/stores/sdk'; + import { sdkForConsole } from '$lib/stores/sdk'; import type { Models } from '@aw-labs/appwrite-console'; import { pageLimit } from '$lib/stores/layout'; @@ -26,7 +26,7 @@ let showCreate = false; let showDelete = false; - const getAvatar = (name: string) => sdkForProject.avatars.getInitials(name, 32, 32).toString(); + const getAvatar = (name: string) => sdkForConsole.avatars.getInitials(name, 32, 32).toString(); const deleted = () => memberList.load($organization.$id, search, $pageLimit, offset ?? 0); const created = () => memberList.load($organization.$id, search, $pageLimit, offset ?? 0); @@ -62,7 +62,7 @@
{member.userName ? member.userName : 'n/a'} diff --git a/src/routes/console/settings@intro.svelte b/src/routes/console/settings@intro.svelte index a01c11a41..5ef8ef366 100644 --- a/src/routes/console/settings@intro.svelte +++ b/src/routes/console/settings@intro.svelte @@ -1 +1,88 @@ -settings + + + +
+ +
Update Name
+ + +
    + +
+
+ + + + +
+
+ + +
+
Delete Organization
+
+

+ The organization will be permanently deleted, including all projects and data associated + with this organization. This action is irreversible. +

+ + + + + + +
{$organization.name}
+
+

{$organization.total} projects

+
+
+ + + + +
+
+ +