Skip to content

Commit

Permalink
UI: hide Cleanup/Expunge when delete a CloudManaged CKS cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed Feb 5, 2024
1 parent c795547 commit 7d1a0e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/src/config/section/compute.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,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']
},
Expand Down

0 comments on commit 7d1a0e5

Please sign in to comment.