From f36da21e40104a50acb00132920b835240cebb38 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Jul 2019 16:05:59 +0200 Subject: Update angular --- client/src/app/shared/moderation/user-ban-modal.component.ts | 2 +- client/src/app/shared/moderation/user-moderation-dropdown.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/moderation') 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' styleUrls: [ './user-ban-modal.component.scss' ] }) export class UserBanModalComponent extends FormReactive implements OnInit { - @ViewChild('modal') modal: NgbModal + @ViewChild('modal', { static: true }) modal: NgbModal @Output() userBanned = new EventEmitter() 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' templateUrl: './user-moderation-dropdown.component.html' }) export class UserModerationDropdownComponent implements OnChanges { - @ViewChild('userBanModal') userBanModal: UserBanModalComponent + @ViewChild('userBanModal', { static: false }) userBanModal: UserBanModalComponent @Input() user: User @Input() account: Account -- cgit v1.2.3