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/shared/form-validators/video-captions-validators.ts | |
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/shared/form-validators/video-captions-validators.ts')
-rw-r--r-- | client/src/app/shared/form-validators/video-captions-validators.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/shared/form-validators/video-captions-validators.ts b/client/src/app/shared/form-validators/video-captions-validators.ts index a16216422..e589fe934 100644 --- a/client/src/app/shared/form-validators/video-captions-validators.ts +++ b/client/src/app/shared/form-validators/video-captions-validators.ts | |||
@@ -14,3 +14,10 @@ export const VIDEO_CAPTION_FILE_VALIDATOR: BuildFormValidator = { | |||
14 | required: $localize`Video caption file is required.` | 14 | required: $localize`Video caption file is required.` |
15 | } | 15 | } |
16 | } | 16 | } |
17 | |||
18 | export const VIDEO_CAPTION_FILE_CONTENT_VALIDATOR: BuildFormValidator = { | ||
19 | VALIDATORS: [ Validators.required ], | ||
20 | MESSAGES: { | ||
21 | required: $localize`Caption content is required.` | ||
22 | } | ||
23 | } | ||