diff options
author | lutangar <johan.dufour@gmail.com> | 2021-12-22 18:36:56 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-02-28 14:29:01 +0100 |
commit | 57d74ec83d64daaf2efc6a3dad8adbcfe1f59415 (patch) | |
tree | 3d56b8c45e6f7c88149c34e9c93b994c94587107 /client/src/app/+videos/+video-edit/shared/video-edit.component.html | |
parent | e66d0892b12c5b3b3e8a6b7a4129103a912486a9 (diff) | |
download | PeerTube-57d74ec83d64daaf2efc6a3dad8adbcfe1f59415.tar.gz PeerTube-57d74ec83d64daaf2efc6a3dad8adbcfe1f59415.tar.zst PeerTube-57d74ec83d64daaf2efc6a3dad8adbcfe1f59415.zip |
Add simple subtitle edition from video captions tab
Introduce a new __Edit__ button on a subtitle.
It opens a modal with simple textarea allowing the user to do quick corrections on a subtitle.
Diffstat (limited to 'client/src/app/+videos/+video-edit/shared/video-edit.component.html')
-rw-r--r-- | client/src/app/+videos/+video-edit/shared/video-edit.component.html | 18 |
1 files changed, 17 insertions, 1 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 9bb13ba88..2281f8631 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 | |||
@@ -186,6 +186,7 @@ | |||
186 | 186 | ||
187 | <div i18n class="caption-entry-state">Already uploaded ✔</div> | 187 | <div i18n class="caption-entry-state">Already uploaded ✔</div> |
188 | 188 | ||
189 | <span i18n class="caption-entry-edit" (click)="videoCaptionEditModal.show()">Edit</span> | ||
189 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Delete</span> | 190 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Delete</span> |
190 | </ng-container> | 191 | </ng-container> |
191 | 192 | ||
@@ -197,6 +198,14 @@ | |||
197 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Cancel create</span> | 198 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Cancel create</span> |
198 | </ng-container> | 199 | </ng-container> |
199 | 200 | ||
201 | <ng-container *ngIf="videoCaption.action === 'UPDATE'"> | ||
202 | <span class="caption-entry-label">{{ videoCaption.language.label }}</span> | ||
203 | |||
204 | <div i18n class="caption-entry-state caption-entry-state-create">Will be edited on update</div> | ||
205 | |||
206 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Cancel edition</span> | ||
207 | </ng-container> | ||
208 | |||
200 | <ng-container *ngIf="videoCaption.action === 'REMOVE'"> | 209 | <ng-container *ngIf="videoCaption.action === 'REMOVE'"> |
201 | <span class="caption-entry-label">{{ videoCaption.language.label }}</span> | 210 | <span class="caption-entry-label">{{ videoCaption.language.label }}</span> |
202 | 211 | ||
@@ -204,6 +213,13 @@ | |||
204 | 213 | ||
205 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Cancel deletion</span> | 214 | <span i18n class="caption-entry-delete" (click)="deleteCaption(videoCaption)">Cancel deletion</span> |
206 | </ng-container> | 215 | </ng-container> |
216 | |||
217 | <my-video-caption-edit-modal | ||
218 | #videoCaptionEditModal | ||
219 | [videoCaption]="videoCaption" | ||
220 | [serverConfig]="serverConfig" | ||
221 | (captionEdited)="onCaptionEdited($event)" | ||
222 | ></my-video-caption-edit-modal> | ||
207 | </div> | 223 | </div> |
208 | </div> | 224 | </div> |
209 | 225 | ||
@@ -373,5 +389,5 @@ | |||
373 | </div> | 389 | </div> |
374 | 390 | ||
375 | <my-video-caption-add-modal | 391 | <my-video-caption-add-modal |
376 | #videoCaptionAddModal [existingCaptions]="getExistingCaptions()" [serverConfig]="serverConfig" (captionAdded)="onCaptionAdded($event)" | 392 | #videoCaptionAddModal [existingCaptions]="getExistingCaptions()" [serverConfig]="serverConfig" (captionAdded)="onCaptionEdited($event)" |
377 | ></my-video-caption-add-modal> | 393 | ></my-video-caption-add-modal> |