This is an automated email from the ASF dual-hosted git repository.
nvazquez pushed a commit to branch 4.17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.17 by this push:
new 22c48363a1 hide project delete button while in this project view
(#6439)
22c48363a1 is described below
commit 22c48363a193196487cedcf20d3a975b47ac3010
Author: Hoang Nguyen <[email protected]>
AuthorDate: Wed Jun 8 23:18:59 2022 +0700
hide project delete button while in this project view (#6439)
---
ui/src/config/section/project.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/config/section/project.js b/ui/src/config/section/project.js
index a8f5335df9..ee8f2359b9 100644
--- a/ui/src/config/section/project.js
+++ b/ui/src/config/section/project.js
@@ -154,7 +154,7 @@ export default {
docHelp: 'adminguide/projects.html#suspending-or-deleting-a-project',
dataView: true,
show: (record, store) => {
- return (['Admin', 'DomainAdmin'].includes(store.userInfo.roletype)) ||
record.isCurrentUserProjectAdmin
+ return (['Admin', 'DomainAdmin'].includes(store.userInfo.roletype) ||
record.isCurrentUserProjectAdmin) && record.id !== store.project.id
},
groupAction: true,
popup: true,