DaanHoogland commented on code in PR #8337:
URL: https://github.com/apache/cloudstack/pull/8337#discussion_r1428774831
##########
ui/src/config/section/user.js:
##########
@@ -96,6 +96,19 @@ export default {
record.state === 'enabled'
}
},
+ {
+ api: 'lockUser',
+ icon: 'LockOutlined',
+ label: 'label.action.lock.user',
+ dataView: true,
+ popup: true,
+ show: (record, store) => {
+ return ['Admin', 'DomainAdmin'].includes(store.userInfo.roletype) &&
!record.isdefault &&
+ !(record.domain === 'ROOT' && record.account === 'admin' &&
record.accounttype === 1) &&
+ record.state === 'enabled'
+ },
+ component: shallowRef(defineAsyncComponent(() =>
import('@/views/iam/LockUser.vue')))
Review Comment:
That makes sense @winterhazel , but on second though, should we maybe extend
the existing component instead? just a though, no :-1:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]