From 8ca56654a176ee8f350d31282c6cac4a59f58499 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 9 Jul 2020 11:58:46 +0200 Subject: Add ability to report comments in front end --- .../shared/shared-moderation/user-moderation-dropdown.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts') diff --git a/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts b/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts index d3c37f082..78c2658df 100644 --- a/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts +++ b/client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts @@ -16,6 +16,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges { @Input() user: User @Input() account: Account + @Input() prependActions: DropdownAction<{ user: User, account: Account }>[] @Input() buttonSize: 'normal' | 'small' = 'normal' @Input() placement = 'left-top left-bottom auto' @@ -250,6 +251,12 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges { private buildActions () { this.userActions = [] + if (this.prependActions) { + this.userActions = [ + this.prependActions + ] + } + if (this.authService.isLoggedIn()) { const authUser = this.authService.getUser() -- cgit v1.2.3