aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/moderation/user-moderation-dropdown.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/moderation/user-moderation-dropdown.component.ts')
-rw-r--r--client/src/app/shared/moderation/user-moderation-dropdown.component.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/shared/moderation/user-moderation-dropdown.component.ts b/client/src/app/shared/moderation/user-moderation-dropdown.component.ts
index d82dc3d94..89f275a04 100644
--- a/client/src/app/shared/moderation/user-moderation-dropdown.component.ts
+++ b/client/src/app/shared/moderation/user-moderation-dropdown.component.ts
@@ -21,6 +21,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
21 21
22 @Input() buttonSize: 'normal' | 'small' = 'normal' 22 @Input() buttonSize: 'normal' | 'small' = 'normal'
23 @Input() placement = 'left' 23 @Input() placement = 'left'
24 @Input() label: string
24 25
25 @Output() userChanged = new EventEmitter() 26 @Output() userChanged = new EventEmitter()
26 @Output() userDeleted = new EventEmitter() 27 @Output() userDeleted = new EventEmitter()
@@ -36,7 +37,6 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
36 private serverService: ServerService, 37 private serverService: ServerService,
37 private userService: UserService, 38 private userService: UserService,
38 private blocklistService: BlocklistService, 39 private blocklistService: BlocklistService,
39 private auth: AuthService,
40 private i18n: I18n 40 private i18n: I18n
41 ) { } 41 ) { }
42 42
@@ -243,20 +243,20 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
243 if (this.user && authUser.hasRight(UserRight.MANAGE_USERS) && authUser.canManage(this.user)) { 243 if (this.user && authUser.hasRight(UserRight.MANAGE_USERS) && authUser.canManage(this.user)) {
244 this.userActions.push([ 244 this.userActions.push([
245 { 245 {
246 label: this.i18n('Edit'), 246 label: this.i18n('Edit user'),
247 linkBuilder: ({ user }) => this.getRouterUserEditLink(user) 247 linkBuilder: ({ user }) => this.getRouterUserEditLink(user)
248 }, 248 },
249 { 249 {
250 label: this.i18n('Delete'), 250 label: this.i18n('Delete user'),
251 handler: ({ user }) => this.removeUser(user) 251 handler: ({ user }) => this.removeUser(user)
252 }, 252 },
253 { 253 {
254 label: this.i18n('Ban'), 254 label: this.i18n('Ban user'),
255 handler: ({ user }) => this.openBanUserModal(user), 255 handler: ({ user }) => this.openBanUserModal(user),
256 isDisplayed: ({ user }) => !user.blocked 256 isDisplayed: ({ user }) => !user.blocked
257 }, 257 },
258 { 258 {
259 label: this.i18n('Unban'), 259 label: this.i18n('Unban user'),
260 handler: ({ user }) => this.unbanUser(user), 260 handler: ({ user }) => this.unbanUser(user),
261 isDisplayed: ({ user }) => user.blocked 261 isDisplayed: ({ user }) => user.blocked
262 }, 262 },