This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 22a4464c670 change args visibility when editing a default role (#8322)
22a4464c670 is described below
commit 22a4464c6702a2d73eee09a09a709971eaa7237d
Author: Gabriel Pordeus Santos <[email protected]>
AuthorDate: Thu Dec 7 08:12:14 2023 -0300
change args visibility when editing a default role (#8322)
---
ui/src/config/section/role.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/config/section/role.js b/ui/src/config/section/role.js
index 5196d2ad98d..d903ea0fae8 100644
--- a/ui/src/config/section/role.js
+++ b/ui/src/config/section/role.js
@@ -53,7 +53,7 @@ export default {
icon: 'edit-outlined',
label: 'label.edit.role',
dataView: true,
- args: ['name', 'description', 'type', 'ispublic'],
+ args: (record) => record.isdefault ? ['ispublic'] : ['name',
'description', 'type', 'ispublic'],
mapping: {
type: {
options: ['Admin', 'DomainAdmin', 'User']