diff options
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts index 6508eef7e..da25663d7 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts | |||
@@ -71,7 +71,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom | |||
71 | channelId: this.firstStepChannelId | 71 | channelId: this.firstStepChannelId |
72 | } | 72 | } |
73 | 73 | ||
74 | this.loadingBar.start() | 74 | this.loadingBar.useRef().start() |
75 | 75 | ||
76 | this.videoImportService | 76 | this.videoImportService |
77 | .importVideoUrl(this.targetUrl, videoUpdate) | 77 | .importVideoUrl(this.targetUrl, videoUpdate) |
@@ -86,7 +86,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom | |||
86 | ) | 86 | ) |
87 | .subscribe( | 87 | .subscribe( |
88 | ({ video, videoCaptions }) => { | 88 | ({ video, videoCaptions }) => { |
89 | this.loadingBar.complete() | 89 | this.loadingBar.useRef().complete() |
90 | this.firstStepDone.emit(video.name) | 90 | this.firstStepDone.emit(video.name) |
91 | this.isImportingVideo = false | 91 | this.isImportingVideo = false |
92 | this.hasImportedVideo = true | 92 | this.hasImportedVideo = true |
@@ -115,7 +115,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom | |||
115 | }, | 115 | }, |
116 | 116 | ||
117 | err => { | 117 | err => { |
118 | this.loadingBar.complete() | 118 | this.loadingBar.useRef().complete() |
119 | this.isImportingVideo = false | 119 | this.isImportingVideo = false |
120 | this.firstStepError.emit() | 120 | this.firstStepError.emit() |
121 | this.notifier.error(err.message) | 121 | this.notifier.error(err.message) |