diff options
author | Chocobozzz <me@florianbigard.com> | 2022-02-11 10:51:33 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-02-28 10:42:19 +0100 |
commit | c729caf6cc34630877a0e5a1bda1719384cd0c8a (patch) | |
tree | 1d2e13722e518c73d2c9e6f0969615e29d51cf8c /client/src/app/+videos/+video-watch | |
parent | a24bf4dc659cebb65d887862bf21d7a35e9ec791 (diff) | |
download | PeerTube-c729caf6cc34630877a0e5a1bda1719384cd0c8a.tar.gz PeerTube-c729caf6cc34630877a0e5a1bda1719384cd0c8a.tar.zst PeerTube-c729caf6cc34630877a0e5a1bda1719384cd0c8a.zip |
Add basic video editor support
Diffstat (limited to 'client/src/app/+videos/+video-watch')
3 files changed, 9 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.ts b/client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.ts index e59238ffe..6e8a64f46 100644 --- a/client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.ts +++ b/client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.ts | |||
@@ -35,6 +35,7 @@ export class ActionButtonsComponent implements OnInit, OnChanges { | |||
35 | playlist: false, | 35 | playlist: false, |
36 | download: true, | 36 | download: true, |
37 | update: true, | 37 | update: true, |
38 | editor: true, | ||
38 | blacklist: true, | 39 | blacklist: true, |
39 | delete: true, | 40 | delete: true, |
40 | report: true, | 41 | report: true, |
diff --git a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html index 0c4d46714..c6ffb1abd 100644 --- a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html +++ b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html | |||
@@ -14,6 +14,10 @@ | |||
14 | The video is being transcoded, it may not work properly. | 14 | The video is being transcoded, it may not work properly. |
15 | </div> | 15 | </div> |
16 | 16 | ||
17 | <div i18n class="alert alert-warning" *ngIf="isVideoToEdit()"> | ||
18 | The video is being edited, it may not work properly. | ||
19 | </div> | ||
20 | |||
17 | <div i18n class="alert alert-warning" *ngIf="isVideoToMoveToExternalStorage()"> | 21 | <div i18n class="alert alert-warning" *ngIf="isVideoToMoveToExternalStorage()"> |
18 | The video is being moved to an external server, it may not work properly. | 22 | The video is being moved to an external server, it may not work properly. |
19 | </div> | 23 | </div> |
diff --git a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts index a3d3fa6fb..79b56705f 100644 --- a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts +++ b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts | |||
@@ -14,6 +14,10 @@ export class VideoAlertComponent { | |||
14 | return this.video && this.video.state.id === VideoState.TO_TRANSCODE | 14 | return this.video && this.video.state.id === VideoState.TO_TRANSCODE |
15 | } | 15 | } |
16 | 16 | ||
17 | isVideoToEdit () { | ||
18 | return this.video && this.video.state.id === VideoState.TO_EDIT | ||
19 | } | ||
20 | |||
17 | isVideoTranscodingFailed () { | 21 | isVideoTranscodingFailed () { |
18 | return this.video && this.video.state.id === VideoState.TRANSCODING_FAILED | 22 | return this.video && this.video.state.id === VideoState.TRANSCODING_FAILED |
19 | } | 23 | } |