From 1ba471c55fdbf05ef2c10152b3e4b0c5d8da3213 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 16 Jun 2020 14:13:01 +0200 Subject: Add videos count in channels list --- client/src/app/shared/confirm/confirm.component.scss | 4 ++++ client/src/app/shared/video-channel/video-channel.model.ts | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/confirm/confirm.component.scss b/client/src/app/shared/confirm/confirm.component.scss index 93dd7926b..ed226bc09 100644 --- a/client/src/app/shared/confirm/confirm.component.scss +++ b/client/src/app/shared/confirm/confirm.component.scss @@ -1,6 +1,10 @@ @import '_variables'; @import '_mixins'; +.modal-body { + font-size: 15px; +} + .button { padding: 0 13px; } diff --git a/client/src/app/shared/video-channel/video-channel.model.ts b/client/src/app/shared/video-channel/video-channel.model.ts index 617d6d44d..2f4597343 100644 --- a/client/src/app/shared/video-channel/video-channel.model.ts +++ b/client/src/app/shared/video-channel/video-channel.model.ts @@ -9,9 +9,13 @@ export class VideoChannel extends Actor implements ServerVideoChannel { isLocal: boolean nameWithHost: string nameWithHostForced: string + ownerAccount?: Account ownerBy?: string ownerAvatarUrl?: string + + videosCount?: number + viewsPerDay?: ViewsPerDate[] constructor (hash: ServerVideoChannel) { @@ -24,6 +28,8 @@ export class VideoChannel extends Actor implements ServerVideoChannel { this.nameWithHost = Actor.CREATE_BY_STRING(this.name, this.host) this.nameWithHostForced = Actor.CREATE_BY_STRING(this.name, this.host, true) + this.videosCount = hash.videosCount + if (hash.viewsPerDay) { this.viewsPerDay = hash.viewsPerDay.map(v => ({ ...v, date: new Date(v.date) })) } -- cgit v1.2.3