Fix inherits role options
This commit is contained in:
parent
21c5287290
commit
5d33c6ebc9
|
@ -37,7 +37,6 @@
|
||||||
const id = event?.detail
|
const id = event?.detail
|
||||||
const role = $roles.find(role => role._id === id)
|
const role = $roles.find(role => role._id === id)
|
||||||
if (role) {
|
if (role) {
|
||||||
console.log("INH ", role.inherits)
|
|
||||||
selectedRole = {
|
selectedRole = {
|
||||||
...role,
|
...role,
|
||||||
inherits: role.inherits ?? "",
|
inherits: role.inherits ?? "",
|
||||||
|
@ -125,7 +124,7 @@
|
||||||
<Select
|
<Select
|
||||||
label="Inherits Role"
|
label="Inherits Role"
|
||||||
bind:value={selectedRole.inherits}
|
bind:value={selectedRole.inherits}
|
||||||
options={$roles}
|
options={selectedRole._id === "BASIC" ? $roles : otherRoles}
|
||||||
getOptionValue={role => role._id}
|
getOptionValue={role => role._id}
|
||||||
getOptionLabel={role => role.name}
|
getOptionLabel={role => role.name}
|
||||||
disabled={builtInRoles.includes(selectedRole.name)}
|
disabled={builtInRoles.includes(selectedRole.name)}
|
||||||
|
|
Loading…
Reference in New Issue