diff options
Diffstat (limited to 'client/src/app/+admin')
4 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.ts b/client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.ts index f915978ee..f8a5ef8cb 100644 --- a/client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.ts +++ b/client/src/app/+admin/moderation/video-abuse-list/moderation-comment-modal.component.ts | |||
@@ -13,7 +13,7 @@ import { VideoAbuse } from '../../../../../../shared/models/videos' | |||
13 | styleUrls: [ './moderation-comment-modal.component.scss' ] | 13 | styleUrls: [ './moderation-comment-modal.component.scss' ] |
14 | }) | 14 | }) |
15 | export class ModerationCommentModalComponent extends FormReactive implements OnInit { | 15 | export class ModerationCommentModalComponent extends FormReactive implements OnInit { |
16 | @ViewChild('modal') modal: NgbModal | 16 | @ViewChild('modal', { static: true }) modal: NgbModal |
17 | @Output() commentUpdated = new EventEmitter<string>() | 17 | @Output() commentUpdated = new EventEmitter<string>() |
18 | 18 | ||
19 | private abuseToComment: VideoAbuse | 19 | private abuseToComment: VideoAbuse |
diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts index 3aa875668..778f18d3d 100644 --- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts +++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts | |||
@@ -17,7 +17,7 @@ import { MarkdownService } from '@app/shared/renderer' | |||
17 | styleUrls: [ '../moderation.component.scss'] | 17 | styleUrls: [ '../moderation.component.scss'] |
18 | }) | 18 | }) |
19 | export class VideoAbuseListComponent extends RestTable implements OnInit { | 19 | export class VideoAbuseListComponent extends RestTable implements OnInit { |
20 | @ViewChild('moderationCommentModal') moderationCommentModal: ModerationCommentModalComponent | 20 | @ViewChild('moderationCommentModal', { static: true }) moderationCommentModal: ModerationCommentModalComponent |
21 | 21 | ||
22 | videoAbuses: (VideoAbuse & { moderationCommentHtml?: string, reasonHtml?: string })[] = [] | 22 | videoAbuses: (VideoAbuse & { moderationCommentHtml?: string, reasonHtml?: string })[] = [] |
23 | totalRecords = 0 | 23 | totalRecords = 0 |
diff --git a/client/src/app/+admin/system/logs/logs.component.ts b/client/src/app/+admin/system/logs/logs.component.ts index 1a3508a3b..b2aca8461 100644 --- a/client/src/app/+admin/system/logs/logs.component.ts +++ b/client/src/app/+admin/system/logs/logs.component.ts | |||
@@ -10,7 +10,7 @@ import { LogLevel } from '@shared/models/server/log-level.type' | |||
10 | styleUrls: [ './logs.component.scss' ] | 10 | styleUrls: [ './logs.component.scss' ] |
11 | }) | 11 | }) |
12 | export class LogsComponent implements OnInit { | 12 | export class LogsComponent implements OnInit { |
13 | @ViewChild('logsElement') logsElement: ElementRef<HTMLElement> | 13 | @ViewChild('logsElement', { static: true }) logsElement: ElementRef<HTMLElement> |
14 | 14 | ||
15 | loading = false | 15 | loading = false |
16 | 16 | ||
diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts index 66ab796f9..c9c790689 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.ts +++ b/client/src/app/+admin/users/user-list/user-list.component.ts | |||
@@ -14,7 +14,7 @@ import { DropdownAction } from '@app/shared/buttons/action-dropdown.component' | |||
14 | styleUrls: [ './user-list.component.scss' ] | 14 | styleUrls: [ './user-list.component.scss' ] |
15 | }) | 15 | }) |
16 | export class UserListComponent extends RestTable implements OnInit { | 16 | export class UserListComponent extends RestTable implements OnInit { |
17 | @ViewChild('userBanModal') userBanModal: UserBanModalComponent | 17 | @ViewChild('userBanModal', { static: true }) userBanModal: UserBanModalComponent |
18 | 18 | ||
19 | users: User[] = [] | 19 | users: User[] = [] |
20 | totalRecords = 0 | 20 | totalRecords = 0 |