From 489290b8b16bede6ddfb773adad55dee6471ccfd Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 21 Mar 2019 16:49:46 +0100 Subject: Restore videos list components --- .../video-auto-blacklist-list.component.html | 75 ++++++++++------------ .../video-auto-blacklist-list.component.ts | 13 ++-- 2 files changed, 38 insertions(+), 50 deletions(-) (limited to 'client/src/app/+admin') diff --git a/client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.html b/client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.html index fe579ffd7..961ac51d3 100644 --- a/client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.html +++ b/client/src/app/+admin/moderation/video-auto-blacklist-list/video-auto-blacklist-list.component.html @@ -1,49 +1,42 @@
No results.
-
-
-
-
- -
- -
- {{ video.name }} -
{{ video.account.displayName }}
-
{{ video.publishedAt | myFromNow }}
-
Privacy: {{ video.privacy.label }}
-
Sensitve: {{ video.nsfw }}
-
+
+
+
+ +
- -
-
- - Cancel - + - - - Unblacklist - -
-
+
+ {{ video.name }} +
{{ video.account.displayName }}
+
{{ video.publishedAt | myFromNow }}
+
Privacy: {{ video.privacy.label }}
+
Sensitive: {{ video.nsfw }}
+
+ + +
+
+ + Cancel + -
- + + + Unblacklist +
-
\ No newline at end of file +
+ +
+
+
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' import { Router, ActivatedRoute } from '@angular/router' import { AbstractVideoList } from '@app/shared/video/abstract-video-list' import { ComponentPagination } from '@app/shared/rest/component-pagination.model' -import { Notifier, AuthService } from '@app/core' +import { Notifier, AuthService, ServerService } from '@app/core' import { Video } from '@shared/models' import { VideoBlacklistService } from '@app/shared' import { immutableAssign } from '@app/shared/misc/utils' @@ -17,7 +17,6 @@ import { ScreenService } from '@app/shared/misc/screen.service' }) export class VideoAutoBlacklistListComponent extends AbstractVideoList implements OnInit, OnDestroy { titlePage: string - currentRoute = '/admin/moderation/video-auto-blacklist/list' checkedVideos: { [ id: number ]: boolean } = {} pagination: ComponentPagination = { currentPage: 1, @@ -25,18 +24,15 @@ export class VideoAutoBlacklistListComponent extends AbstractVideoList implement totalItems: null } - protected baseVideoWidth = -1 - protected baseVideoHeight = 155 - constructor ( protected router: Router, protected route: ActivatedRoute, - protected i18n: I18n, protected notifier: Notifier, - protected location: Location, protected authService: AuthService, protected screenService: ScreenService, - private videoBlacklistService: VideoBlacklistService, + protected serverService: ServerService, + private i18n: I18n, + private videoBlacklistService: VideoBlacklistService ) { super() @@ -96,5 +92,4 @@ export class VideoAutoBlacklistListComponent extends AbstractVideoList implement error => this.notifier.error(error.message) ) } - } -- cgit v1.2.3