winterhazel commented on code in PR #8337:
URL: https://github.com/apache/cloudstack/pull/8337#discussion_r1428224671
##########
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:
There is. I created this component because I thought it would be nice to
include the user's name in the warning and success messages so that operators
do not accidentally lock the wrong user and so that they get a confirmation
showing which user was locked, which was not possible with the existing
mechanism since it does not provide the option to replace placeholders.
--
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]