diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-21 16:49:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-02 11:45:02 +0200 |
commit | 489290b8b16bede6ddfb773adad55dee6471ccfd (patch) | |
tree | 8d3bb73c80df18f1e4d15b23a7e4080a6bc5985e /client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.ts | |
parent | 7ccddd7b5250bd25a917a6e77e58b87b9484a2a4 (diff) | |
download | PeerTube-489290b8b16bede6ddfb773adad55dee6471ccfd.tar.gz PeerTube-489290b8b16bede6ddfb773adad55dee6471ccfd.tar.zst PeerTube-489290b8b16bede6ddfb773adad55dee6471ccfd.zip |
Restore videos list components
Diffstat (limited to 'client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.ts')
-rw-r--r-- | client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.ts | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.ts b/client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.ts index b79f574c9..af68d7e2e 100644 --- a/client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.ts +++ b/client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.ts | |||
@@ -4,7 +4,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill' | |||
4 | import { Router, ActivatedRoute } from '@angular/router' | 4 | import { Router, ActivatedRoute } from '@angular/router' |
5 | import { AbstractVideoList } from '@app/shared/video/abstract-video-list' | 5 | import { AbstractVideoList } from '@app/shared/video/abstract-video-list' |
6 | import { ComponentPagination } from '@app/shared/rest/component-pagination.model' | 6 | import { ComponentPagination } from '@app/shared/rest/component-pagination.model' |
7 | import { Notifier, AuthService } from '@app/core' | 7 | import { Notifier, AuthService, ServerService } from '@app/core' |
8 | import { Video } from '@shared/models' | 8 | import { Video } from '@shared/models' |
9 | import { VideoBlacklistService } from '@app/shared' | 9 | import { VideoBlacklistService } from '@app/shared' |
10 | import { immutableAssign } from '@app/shared/misc/utils' | 10 | import { immutableAssign } from '@app/shared/misc/utils' |
@@ -17,7 +17,6 @@ import { ScreenService } from '@app/shared/misc/screen.service' | |||
17 | }) | 17 | }) |
18 | export class VideoAutoBlacklistListComponent extends AbstractVideoList implements OnInit, OnDestroy { | 18 | export class VideoAutoBlacklistListComponent extends AbstractVideoList implements OnInit, OnDestroy { |
19 | titlePage: string | 19 | titlePage: string |
20 | currentRoute = '/admin/moderation/video-auto-blacklist/list' | ||
21 | checkedVideos: { [ id: number ]: boolean } = {} | 20 | checkedVideos: { [ id: number ]: boolean } = {} |
22 | pagination: ComponentPagination = { | 21 | pagination: ComponentPagination = { |
23 | currentPage: 1, | 22 | currentPage: 1, |
@@ -25,18 +24,15 @@ export class VideoAutoBlacklistListComponent extends AbstractVideoList implement | |||
25 | totalItems: null | 24 | totalItems: null |
26 | } | 25 | } |
27 | 26 | ||
28 | protected baseVideoWidth = -1 | ||
29 | protected baseVideoHeight = 155 | ||
30 | |||
31 | constructor ( | 27 | constructor ( |
32 | protected router: Router, | 28 | protected router: Router, |
33 | protected route: ActivatedRoute, | 29 | protected route: ActivatedRoute, |
34 | protected i18n: I18n, | ||
35 | protected notifier: Notifier, | 30 | protected notifier: Notifier, |
36 | protected location: Location, | ||
37 | protected authService: AuthService, | 31 | protected authService: AuthService, |
38 | protected screenService: ScreenService, | 32 | protected screenService: ScreenService, |
39 | private videoBlacklistService: VideoBlacklistService, | 33 | protected serverService: ServerService, |
34 | private i18n: I18n, | ||
35 | private videoBlacklistService: VideoBlacklistService | ||
40 | ) { | 36 | ) { |
41 | super() | 37 | super() |
42 | 38 | ||
@@ -96,5 +92,4 @@ export class VideoAutoBlacklistListComponent extends AbstractVideoList implement | |||
96 | error => this.notifier.error(error.message) | 92 | error => this.notifier.error(error.message) |
97 | ) | 93 | ) |
98 | } | 94 | } |
99 | |||
100 | } | 95 | } |