From 8b381422b88a02a971f5e50422b5b4b79b1101e5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 12 Jun 2020 08:12:13 +0200 Subject: [PATCH] Fix lint --- .../video-block-list/video-block-list.component.ts | 10 +++++----- server/tests/api/server/follows.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts index 7b3691332..c0ac32242 100644 --- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts +++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core' +import { Component, OnInit, AfterViewInit } from '@angular/core' import { SortMeta } from 'primeng/api' import { Notifier, ServerService } from '@app/core' import { ConfirmService } from '../../../core' @@ -17,7 +17,7 @@ import { VideoService } from '@app/shared/video/video.service' templateUrl: './video-block-list.component.html', styleUrls: [ '../moderation.component.scss', './video-block-list.component.scss' ] }) -export class VideoBlockListComponent extends RestTable implements OnInit { +export class VideoBlockListComponent extends RestTable implements OnInit, AfterViewInit { blocklist: (VideoBlacklist & { reasonHtml?: string })[] = [] totalRecords = 0 sort: SortMeta = { field: 'createdAt', order: -1 } @@ -55,7 +55,7 @@ export class VideoBlockListComponent extends RestTable implements OnInit { this.notifier.success(this.i18n('Video {{name}} switched to manual block.', { name: videoBlock.video.name })) this.loadData() }, - + err => this.notifier.error(err.message) ) } @@ -64,7 +64,7 @@ export class VideoBlockListComponent extends RestTable implements OnInit { [ { label: this.i18n('Actions for the video'), - isHeader: true, + isHeader: true }, { label: this.i18n('Unblock video'), @@ -177,7 +177,7 @@ export class VideoBlockListComponent extends RestTable implements OnInit { this.videoBlocklistService.listBlocks({ pagination: this.pagination, sort: this.sort, - search: this.search, + search: this.search }) .subscribe( async resultList => { diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts index b686af4e4..1ae1adb2d 100644 --- a/server/tests/api/server/follows.ts +++ b/server/tests/api/server/follows.ts @@ -326,7 +326,7 @@ describe('Test follows', function () { let video4: Video before(async function () { - this.timeout(20000) + this.timeout(50000) const video4Attributes = { name: 'server3-4', -- 2.41.0