aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/moderation
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/moderation')
-rw-r--r--client/src/app/shared/moderation/user-ban-modal.component.ts2
-rw-r--r--client/src/app/shared/moderation/user-moderation-dropdown.component.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/moderation/user-ban-modal.component.ts b/client/src/app/shared/moderation/user-ban-modal.component.ts
index 942765301..cf0e1577a 100644
--- a/client/src/app/shared/moderation/user-ban-modal.component.ts
+++ b/client/src/app/shared/moderation/user-ban-modal.component.ts
@@ -14,7 +14,7 @@ import { User } from '../../../../../shared'
14 styleUrls: [ './user-ban-modal.component.scss' ] 14 styleUrls: [ './user-ban-modal.component.scss' ]
15}) 15})
16export class UserBanModalComponent extends FormReactive implements OnInit { 16export class UserBanModalComponent extends FormReactive implements OnInit {
17 @ViewChild('modal') modal: NgbModal 17 @ViewChild('modal', { static: true }) modal: NgbModal
18 @Output() userBanned = new EventEmitter<User | User[]>() 18 @Output() userBanned = new EventEmitter<User | User[]>()
19 19
20 private usersToBan: User | User[] 20 private usersToBan: User | User[]
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 9dd16812b..24f717821 100644
--- a/client/src/app/shared/moderation/user-moderation-dropdown.component.ts
+++ b/client/src/app/shared/moderation/user-moderation-dropdown.component.ts
@@ -13,7 +13,7 @@ import { BlocklistService } from '@app/shared/blocklist'
13 templateUrl: './user-moderation-dropdown.component.html' 13 templateUrl: './user-moderation-dropdown.component.html'
14}) 14})
15export class UserModerationDropdownComponent implements OnChanges { 15export class UserModerationDropdownComponent implements OnChanges {
16 @ViewChild('userBanModal') userBanModal: UserBanModalComponent 16 @ViewChild('userBanModal', { static: false }) userBanModal: UserBanModalComponent
17 17
18 @Input() user: User 18 @Input() user: User
19 @Input() account: Account 19 @Input() account: Account