From 8b38ce334455bad6c0904cb775b1ebb26927868f Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 7 Mar 2024 14:09:57 +0100 Subject: [PATCH] Clean --- .../src/pages/builder/portal/users/groups/[groupId].svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte index c7ecaf1d34..d0eb50c8dd 100644 --- a/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte +++ b/packages/builder/src/pages/builder/portal/users/groups/[groupId].svelte @@ -48,7 +48,8 @@ let editModal, deleteModal $: group = $groups.find(x => x._id === groupId) - $: readonly = !sdk.users.isAdmin($auth.user) || group?.scimInfo?.isSync + $: isScimGroup = group?.scimInfo?.isSync + $: readonly = !sdk.users.isAdmin($auth.user) || isScimGroup $: groupApps = $apps .filter(app => groups.actions @@ -125,11 +126,11 @@ editModal.show()}> Edit -
+
deleteModal.show()} - disabled={group?.scimInfo?.isSync} + disabled={isScimGroup} > Delete