Skip to content

Commit e3a1727

Browse files
weizhouapachedhslove
authored andcommitted
UI: hide Cleanup/Expunge when delete a CloudManaged CKS cluster (apache#8593)
1 parent 03aaa14 commit e3a1727

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ui/src/config/section/compute.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,9 @@ export default {
678678
groupAction: true,
679679
popup: true,
680680
args: (record, store, group) => {
681+
if (record.clustertype === 'CloudManaged') {
682+
return []
683+
}
681684
return (['Admin'].includes(store.userInfo.roletype) || store.features.allowuserexpungerecovervm)
682685
? ['cleanup', 'expunge'] : ['cleanup']
683686
},

0 commit comments

Comments
 (0)