From c195975c546ecfb0e6228c43a9c855b8c3e09d63 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 16 Nov 2020 15:41:15 +0100 Subject: Use badge in video block list --- .../video-block-list.component.html | 21 +++++++++++---------- .../video-block-list.component.scss | 4 ++++ .../video-block-list/video-block-list.component.ts | 6 ------ 3 files changed, 15 insertions(+), 16 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html index 7250b1368..c7275de1b 100644 --- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html +++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html @@ -80,16 +80,17 @@ - - {{ booleanToText(videoBlock.video.nsfw) }} - {{ booleanToText(videoBlock.unfederated) }} - {{ videoBlock.createdAt | date: 'short' }} - - - {{ booleanToText(videoBlock.video.nsfw) }} - {{ booleanToText(videoBlock.unfederated) }} - {{ videoBlock.createdAt | date: 'short' }} - + + NSFW + + + + Unfederated + + + + {{ videoBlock.createdAt | date: 'short' }} + diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss index 0e34150c1..b67e33cc1 100644 --- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss +++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss @@ -21,3 +21,7 @@ my-global-icon { flex-grow: 1; } } + +.badge { + @include table-badge; +} 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 82818547c..1d0e56bfd 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 @@ -138,12 +138,6 @@ export class VideoBlockListComponent extends RestTable implements OnInit, AfterV return Video.buildClientUrl(videoBlock.video.uuid) } - booleanToText (value: boolean) { - if (value === true) return $localize`yes` - - return $localize`no` - } - toHtml (text: string) { return this.markdownRenderer.textMarkdownToHTML(text) } -- cgit v1.2.3