diff --git a/client/src/app/+my-library/my-videos/my-videos.component.html b/client/src/app/+my-library/my-videos/my-videos.component.html index 77906c008..a6ee6ef13 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.html +++ b/client/src/app/+my-library/my-videos/my-videos.component.html @@ -78,14 +78,15 @@ - {{ getColumn('duration').label }} - {{ getColumn('name').label }} - {{ getColumn('privacy').label }} - {{ getColumn('sensitive').label }} - {{ getColumn('playlists').label }} - {{ getColumn('insights').label }} + {{ getColumn('duration').label }} + {{ getColumn('name').label }} + {{ getColumn('privacy').label }} + {{ getColumn('sensitive').label }} + {{ getColumn('playlists').label }} + {{ getColumn('insights').label }} + {{ getColumn('comments').label }} {{ getColumn('published').label }} - {{ getColumn('state').label }} + {{ getColumn('state').label }}
@@ -162,6 +163,10 @@ + + {video.comments, plural, =0 {No comments} =1 {1 comment} other {{{ video.comments | myNumberFormatter }} comments}} + + {{ video.publishedAt | ptDate: 'short' }} diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts index c680e249a..73e28830c 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.ts +++ b/client/src/app/+my-library/my-videos/my-videos.component.ts @@ -52,7 +52,7 @@ import { VideoPrivacyBadgeComponent } from '../../shared/shared-video/video-priv import { VideoStateBadgeComponent } from '../../shared/shared-video/video-state-badge.component' import { VideoChangeOwnershipComponent } from './modals/video-change-ownership.component' -type Column = 'duration' | 'name' | 'privacy' | 'sensitive' | 'playlists' | 'insights' | 'published' | 'state' +type Column = 'duration' | 'name' | 'privacy' | 'sensitive' | 'playlists' | 'insights' | 'published' | 'state' | 'comments' type CommonFilter = 'live' | 'vod' | 'private' | 'internal' | 'unlisted' | 'password-protected' | 'public' @Component({ @@ -157,6 +157,7 @@ export class MyVideosComponent extends RestTable