Clean
This commit is contained in:
parent
e5525f8198
commit
8b38ce3344
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue