diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-06 16:14:58 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-07 08:28:14 +0200 |
commit | a02b93ce756d646a59cef57b5e4ff53c2bb30bec (patch) | |
tree | 02c70651eed0a4c414e04239aa853b2377228ce9 /client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts | |
parent | d88c9eb9db19965d0075d5835b8837649b2728fd (diff) | |
download | PeerTube-a02b93ce756d646a59cef57b5e4ff53c2bb30bec.tar.gz PeerTube-a02b93ce756d646a59cef57b5e4ff53c2bb30bec.tar.zst PeerTube-a02b93ce756d646a59cef57b5e4ff53c2bb30bec.zip |
Fix lint
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) |