aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-25 10:45:22 +0200
committerChocobozzz <me@florianbigard.com>2022-07-25 10:45:40 +0200
commit4f50475c67356fb1fecd1de6d2551fdc5ad9a739 (patch)
tree1650e080d1db83d1fee69e5970ca9ee2f488d470 /client/src
parentd65cd16551449216f23d68a6238f7739bab34644 (diff)
downloadPeerTube-4f50475c67356fb1fecd1de6d2551fdc5ad9a739.tar.gz
PeerTube-4f50475c67356fb1fecd1de6d2551fdc5ad9a739.tar.zst
PeerTube-4f50475c67356fb1fecd1de6d2551fdc5ad9a739.zip
Display latest uploaded date for captions
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+videos/+video-edit/shared/video-edit.component.html2
-rw-r--r--client/src/app/+videos/+video-edit/shared/video-edit.component.scss7
-rw-r--r--client/src/app/shared/shared-main/video-caption/video-caption-edit.model.ts1
3 files changed, 6 insertions, 4 deletions
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.html
index 650448a74..2892d603d 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 @@
183 [href]="videoCaption.captionPath" 183 [href]="videoCaption.captionPath"
184 >{{ videoCaption.language.label }}</a> 184 >{{ videoCaption.language.label }}</a>
185 185
186 <div i18n class="caption-entry-state">Already uploaded &#10004;</div> 186 <div i18n class="caption-entry-state">Already uploaded on {{ videoCaption.updatedAt | date }} &#10004;</div>
187 187
188 <span i18n class="caption-entry-edit" (click)="videoCaptionEditModal.show()">Edit</span> 188 <span i18n class="caption-entry-edit" (click)="videoCaptionEditModal.show()">Edit</span>
189 <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Delete</span> 189 <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.scss
index e8a6c6e42..a8075cc6d 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 {
41 a.caption-entry-label { 41 a.caption-entry-label {
42 @include disable-default-a-behaviour; 42 @include disable-default-a-behaviour;
43 43
44 flex-grow: 1;
45 color: #000; 44 color: #000;
46 45
47 &:hover { 46 &:hover {
@@ -53,11 +52,13 @@ my-peertube-checkbox {
53 @include margin-right(20px); 52 @include margin-right(20px);
54 53
55 font-weight: bold; 54 font-weight: bold;
56 width: 150px; 55 min-width: 100px;
57 } 56 }
58 57
59 .caption-entry-state { 58 .caption-entry-state {
60 width: 200px; 59 @include margin-right(15px);
60
61 min-width: 250px;
61 62
62 &.caption-entry-state-create { 63 &.caption-entry-state-create {
63 color: #39CC0B; 64 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.ts
index 129e80bc0..8d578cae6 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 {
6 6
7 action?: 'CREATE' | 'REMOVE' | 'UPDATE' 7 action?: 'CREATE' | 'REMOVE' | 'UPDATE'
8 captionfile?: any 8 captionfile?: any
9 updatedAt?: string
9} 10}
10 11
11export type VideoCaptionWithPathEdit = VideoCaptionEdit & { captionPath?: string } 12export type VideoCaptionWithPathEdit = VideoCaptionEdit & { captionPath?: string }