mirror of https://github.com/Chocobozzz/PeerTube
Display latest uploaded date for captions
parent
d65cd16551
commit
4f50475c67
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -6,6 +6,7 @@ export interface VideoCaptionEdit {
|
|||
|
||||
action?: 'CREATE' | 'REMOVE' | 'UPDATE'
|
||||
captionfile?: any
|
||||
updatedAt?: string
|
||||
}
|
||||
|
||||
export type VideoCaptionWithPathEdit = VideoCaptionEdit & { captionPath?: string }
|
||||
|
|
|
@ -195,7 +195,8 @@ export class VideoCaptionModel extends Model<Partial<AttributesOnly<VideoCaption
|
|||
id: this.language,
|
||||
label: VideoCaptionModel.getLanguageLabel(this.language)
|
||||
},
|
||||
captionPath: this.getCaptionStaticPath()
|
||||
captionPath: this.getCaptionStaticPath(),
|
||||
updatedAt: this.updatedAt.toISOString()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3,4 +3,5 @@ import { VideoConstant } from '../video-constant.model'
|
|||
export interface VideoCaption {
|
||||
language: VideoConstant<string>
|
||||
captionPath: string
|
||||
updatedAt: string
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue