This commit is contained in:
Adria Navarro 2024-03-07 14:09:57 +01:00
parent e5525f8198
commit 8b38ce3344
1 changed files with 4 additions and 3 deletions

View File

@ -48,7 +48,8 @@
let editModal, deleteModal let editModal, deleteModal
$: group = $groups.find(x => x._id === groupId) $: 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 $: groupApps = $apps
.filter(app => .filter(app =>
groups.actions groups.actions
@ -125,11 +126,11 @@
<MenuItem icon="Refresh" on:click={() => editModal.show()}> <MenuItem icon="Refresh" on:click={() => editModal.show()}>
Edit Edit
</MenuItem> </MenuItem>
<div title={group?.scimInfo?.isSync && "Group synced from your AD"}> <div title={isScimGroup && "Group synced from your AD"}>
<MenuItem <MenuItem
icon="Delete" icon="Delete"
on:click={() => deleteModal.show()} on:click={() => deleteModal.show()}
disabled={group?.scimInfo?.isSync} disabled={isScimGroup}
> >
Delete Delete
</MenuItem> </MenuItem>