diff options
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts index 538a187a8..3a8e6eecc 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts | |||
@@ -84,11 +84,11 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca | |||
84 | channelId: this.firstStepChannelId | 84 | channelId: this.firstStepChannelId |
85 | } | 85 | } |
86 | 86 | ||
87 | this.loadingBar.start() | 87 | this.loadingBar.useRef().start() |
88 | 88 | ||
89 | this.videoImportService.importVideoTorrent(torrentfile || this.magnetUri, videoUpdate).subscribe( | 89 | this.videoImportService.importVideoTorrent(torrentfile || this.magnetUri, videoUpdate).subscribe( |
90 | res => { | 90 | res => { |
91 | this.loadingBar.complete() | 91 | this.loadingBar.useRef().complete() |
92 | this.firstStepDone.emit(res.video.name) | 92 | this.firstStepDone.emit(res.video.name) |
93 | this.isImportingVideo = false | 93 | this.isImportingVideo = false |
94 | this.hasImportedVideo = true | 94 | this.hasImportedVideo = true |
@@ -105,7 +105,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca | |||
105 | }, | 105 | }, |
106 | 106 | ||
107 | err => { | 107 | err => { |
108 | this.loadingBar.complete() | 108 | this.loadingBar.useRef().complete() |
109 | this.isImportingVideo = false | 109 | this.isImportingVideo = false |
110 | this.firstStepError.emit() | 110 | this.firstStepError.emit() |
111 | this.notifier.error(err.message) | 111 | this.notifier.error(err.message) |