aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-03 09:43:00 +0200
committerChocobozzz <me@florianbigard.com>2018-08-06 11:19:16 +0200
commit516df59b3bbb0218afeda595ee4966800bff4519 (patch)
tree4687691eeb0bf9c2846b673253c54628409345d1 /client
parentd7f83948a1af0ef3bed61f83e87e826902c96f7d (diff)
downloadPeerTube-516df59b3bbb0218afeda595ee4966800bff4519.tar.gz
PeerTube-516df59b3bbb0218afeda595ee4966800bff4519.tar.zst
PeerTube-516df59b3bbb0218afeda595ee4966800bff4519.zip
Remove ability to delete video imports
Users should remove the linked video instead
Diffstat (limited to 'client')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.html4
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts4
2 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html
index f39b5a94a..5a132112d 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.html
+++ b/client/src/app/videos/+video-watch/video-watch.component.html
@@ -8,6 +8,10 @@
8 </div> 8 </div>
9 </div> 9 </div>
10 10
11 <div i18n class="alert alert-warning" *ngIf="isVideoToImport()">
12 The video is being imported, it will be available when the import is finished.
13 </div>
14
11 <div i18n class="alert alert-warning" *ngIf="isVideoToTranscode()"> 15 <div i18n class="alert alert-warning" *ngIf="isVideoToTranscode()">
12 The video is being transcoded, it may not work properly. 16 The video is being transcoded, it may not work properly.
13 </div> 17 </div>
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index 995fb8e2b..04bcc6cd1 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -289,6 +289,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
289 return this.video && this.video.state.id === VideoState.TO_TRANSCODE 289 return this.video && this.video.state.id === VideoState.TO_TRANSCODE
290 } 290 }
291 291
292 isVideoToImport () {
293 return this.video && this.video.state.id === VideoState.TO_IMPORT
294 }
295
292 hasVideoScheduledPublication () { 296 hasVideoScheduledPublication () {
293 return this.video && this.video.scheduledUpdate !== undefined 297 return this.video && this.video.scheduledUpdate !== undefined
294 } 298 }