diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-03 11:10:31 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-06 11:19:16 +0200 |
commit | 5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e (patch) | |
tree | dd992ea798c620b8bdb5bf5fd9b8f1b97d4410f2 /client/src/app/videos/+video-edit/video-import.component.ts | |
parent | 7e5f9f001d5de22c54748f935edc0c069028bb0e (diff) | |
download | PeerTube-5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e.tar.gz PeerTube-5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e.tar.zst PeerTube-5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e.zip |
Add import http enabled configuration
Diffstat (limited to 'client/src/app/videos/+video-edit/video-import.component.ts')
-rw-r--r-- | client/src/app/videos/+video-edit/video-import.component.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/video-import.component.ts b/client/src/app/videos/+video-edit/video-import.component.ts index bd4482e17..b1e8e0205 100644 --- a/client/src/app/videos/+video-edit/video-import.component.ts +++ b/client/src/app/videos/+video-edit/video-import.component.ts | |||
@@ -97,8 +97,11 @@ export class VideoImportComponent extends FormReactive implements OnInit, CanCom | |||
97 | channelId: this.firstStepChannelId | 97 | channelId: this.firstStepChannelId |
98 | } | 98 | } |
99 | 99 | ||
100 | this.loadingBar.start() | ||
101 | |||
100 | this.videoImportService.importVideo(this.targetUrl, videoUpdate).subscribe( | 102 | this.videoImportService.importVideo(this.targetUrl, videoUpdate).subscribe( |
101 | res => { | 103 | res => { |
104 | this.loadingBar.complete() | ||
102 | this.firstStepDone.emit(res.video.name) | 105 | this.firstStepDone.emit(res.video.name) |
103 | this.isImportingVideo = false | 106 | this.isImportingVideo = false |
104 | this.hasImportedVideo = true | 107 | this.hasImportedVideo = true |
@@ -113,6 +116,7 @@ export class VideoImportComponent extends FormReactive implements OnInit, CanCom | |||
113 | }, | 116 | }, |
114 | 117 | ||
115 | err => { | 118 | err => { |
119 | this.loadingBar.complete() | ||
116 | this.isImportingVideo = false | 120 | this.isImportingVideo = false |
117 | this.notificationsService.error(this.i18n('Error'), err.message) | 121 | this.notificationsService.error(this.i18n('Error'), err.message) |
118 | } | 122 | } |