ActivityPub-federated video streaming platform using P2P directly in your web browser
Display latest uploaded date for captions
Chocobozzz4f50475c6735
diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.htmlindex 650448a741..2892d603de 100644--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.html+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.html@@ -183,7 +183,7 @@[href]="videoCaption.captionPath">{{ videoCaption.language.label }}</a>- <div i18n class="caption-entry-state">Already uploaded ✔</div>+ <div i18n class="caption-entry-state">Already uploaded on {{ videoCaption.updatedAt | date }} ✔</div><span i18n class="caption-entry-edit" (click)="videoCaptionEditModal.show()">Edit</span><span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Delete</span>diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.scss b/client/src/app/+videos/+video-edit/shared/video-edit.component.scssindex e8a6c6e420..a8075cc6d6 100644--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.scss+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.scss@@ -41,7 +41,6 @@ my-peertube-checkbox {a.caption-entry-label {@include disable-default-a-behaviour;- flex-grow: 1;color: #000;&:hover {@@ -53,11 +52,13 @@ my-peertube-checkbox {@include margin-right(20px);font-weight: bold;- width: 150px;+ min-width: 100px;}.caption-entry-state {- width: 200px;+ @include margin-right(15px);++ min-width: 250px;&.caption-entry-state-create {color: #39CC0B;diff --git a/client/src/app/shared/shared-main/video-caption/video-caption-edit.model.ts b/client/src/app/shared/shared-main/video-caption/video-caption-edit.model.tsindex 129e80bc0c..8d578cae62 100644--- a/client/src/app/shared/shared-main/video-caption/video-caption-edit.model.ts+++ b/client/src/app/shared/shared-main/video-caption/video-caption-edit.model.ts@@ -6,6 +6,7 @@ export interface VideoCaptionEdit {action?: 'CREATE' | 'REMOVE' | 'UPDATE'captionfile?: any+ updatedAt?: string}export type VideoCaptionWithPathEdit = VideoCaptionEdit & { captionPath?: string }diff --git a/server/models/video/video-caption.ts b/server/models/video/video-caption.tsindex 6b240f1168..5fbcd6e3b9 100644--- a/server/models/video/video-caption.ts+++ b/server/models/video/video-caption.ts@@ -195,7 +195,8 @@ export class VideoCaptionModel extends Model<Partial<AttributesOnly<VideoCaptionid: this.language,label: VideoCaptionModel.getLanguageLabel(this.language)},- captionPath: this.getCaptionStaticPath()+ captionPath: this.getCaptionStaticPath(),+ updatedAt: this.updatedAt.toISOString()}}diff --git a/shared/models/videos/caption/video-caption.model.ts b/shared/models/videos/caption/video-caption.model.tsindex d3c73e1a67..6d56650063 100644--- a/shared/models/videos/caption/video-caption.model.ts+++ b/shared/models/videos/caption/video-caption.model.ts@@ -3,4 +3,5 @@ import { VideoConstant } from '../video-constant.model'export interface VideoCaption {language: VideoConstant<string>captionPath: string+ updatedAt: string}