diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 4b9dedb14c..393623360b 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -8,6 +8,7 @@ export enum Dependencies { ADDRESS = 'dependency:address', PAYMENT_METHODS = 'dependency:paymentMethods', ORGANIZATION = 'dependency:organization', + MEMBERS = 'dependency:members', PROJECT = 'dependency:project', PROJECT_VARIABLES = 'dependency:project_variables', PROJECT_INSTALLATIONS = 'dependency:project_installations', diff --git a/src/routes/console/organization-[organization]/+layout.ts b/src/routes/console/organization-[organization]/+layout.ts index 056bea66cc..d2c49b0615 100644 --- a/src/routes/console/organization-[organization]/+layout.ts +++ b/src/routes/console/organization-[organization]/+layout.ts @@ -13,6 +13,7 @@ import { preferences } from '$lib/stores/preferences'; export const load: LayoutLoad = async ({ params, depends }) => { depends(Dependencies.ORGANIZATION); + depends(Dependencies.MEMBERS); depends(Dependencies.PAYMENT_METHODS); if (isCloud) { diff --git a/src/routes/console/organization-[organization]/createMember.svelte b/src/routes/console/organization-[organization]/createMember.svelte index 2307974f25..5bd7742ba2 100644 --- a/src/routes/console/organization-[organization]/createMember.svelte +++ b/src/routes/console/organization-[organization]/createMember.svelte @@ -34,6 +34,8 @@ ); await invalidate(Dependencies.ACCOUNT); await invalidate(Dependencies.ORGANIZATION); + await invalidate(Dependencies.MEMBERS); + showCreate = false; addNotification({ type: 'success', diff --git a/src/routes/console/organization-[organization]/deleteMember.svelte b/src/routes/console/organization-[organization]/deleteMember.svelte index 7c12dd1d13..5a6cd2687f 100644 --- a/src/routes/console/organization-[organization]/deleteMember.svelte +++ b/src/routes/console/organization-[organization]/deleteMember.svelte @@ -1,6 +1,6 @@