winterhazel commented on code in PR #8337:
URL: https://github.com/apache/cloudstack/pull/8337#discussion_r1430513885
##########
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:
@DaanHoogland @shwstppr I have made some changes in this PR to allow the
replacement of placeholders in `message`s and `successMessage`s of confirmation
dialogs, and updated the description. Could you guys review again? Thanks.
--
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]