mirror of https://github.com/apache/cloudstack.git
hide project delete button while in this project view (#6439)
This commit is contained in:
parent
885e749333
commit
22c48363a1
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue