This is an automated email from the ASF dual-hosted git repository.
weizhou pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.19 by this push:
new f7b95cd8f06 UI: hide Cleanup/Expunge when delete a CloudManaged CKS
cluster (#8593)
f7b95cd8f06 is described below
commit f7b95cd8f06af5eea36716aaae0e6a25fcc8833c
Author: Wei Zhou <[email protected]>
AuthorDate: Mon Apr 29 10:54:03 2024 +0200
UI: hide Cleanup/Expunge when delete a CloudManaged CKS cluster (#8593)
---
ui/src/config/section/compute.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui/src/config/section/compute.js b/ui/src/config/section/compute.js
index db17b20ef9d..7a0644ba98f 100644
--- a/ui/src/config/section/compute.js
+++ b/ui/src/config/section/compute.js
@@ -612,6 +612,9 @@ export default {
groupAction: true,
popup: true,
args: (record, store, group) => {
+ if (record.clustertype === 'CloudManaged') {
+ return []
+ }
return (['Admin'].includes(store.userInfo.roletype) ||
store.features.allowuserexpungerecovervm)
? ['cleanup', 'expunge'] : ['cleanup']
},