From edf1a4e5204189f7c352c007232c2463158aa6d7 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 27 Dec 2019 10:11:10 +0100 Subject: Add user moderation dropdown to comments --- .../shared/moderation/user-moderation-dropdown.component.html | 2 +- .../shared/moderation/user-moderation-dropdown.component.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'client/src/app/shared/moderation') diff --git a/client/src/app/shared/moderation/user-moderation-dropdown.component.html b/client/src/app/shared/moderation/user-moderation-dropdown.component.html index 7367a7e59..adb672322 100644 --- a/client/src/app/shared/moderation/user-moderation-dropdown.component.html +++ b/client/src/app/shared/moderation/user-moderation-dropdown.component.html @@ -3,6 +3,6 @@ \ No newline at end of file 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 { @Input() buttonSize: 'normal' | 'small' = 'normal' @Input() placement = 'left' + @Input() label: string @Output() userChanged = new EventEmitter() @Output() userDeleted = new EventEmitter() @@ -36,7 +37,6 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges { private serverService: ServerService, private userService: UserService, private blocklistService: BlocklistService, - private auth: AuthService, private i18n: I18n ) { } @@ -243,20 +243,20 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges { if (this.user && authUser.hasRight(UserRight.MANAGE_USERS) && authUser.canManage(this.user)) { this.userActions.push([ { - label: this.i18n('Edit'), + label: this.i18n('Edit user'), linkBuilder: ({ user }) => this.getRouterUserEditLink(user) }, { - label: this.i18n('Delete'), + label: this.i18n('Delete user'), handler: ({ user }) => this.removeUser(user) }, { - label: this.i18n('Ban'), + label: this.i18n('Ban user'), handler: ({ user }) => this.openBanUserModal(user), isDisplayed: ({ user }) => !user.blocked }, { - label: this.i18n('Unban'), + label: this.i18n('Unban user'), handler: ({ user }) => this.unbanUser(user), isDisplayed: ({ user }) => user.blocked }, -- cgit v1.2.3