aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/video-update.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-06 16:14:58 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-07 08:28:14 +0200
commita02b93ce756d646a59cef57b5e4ff53c2bb30bec (patch)
tree02c70651eed0a4c414e04239aa853b2377228ce9 /client/src/app/+videos/+video-edit/video-update.component.ts
parentd88c9eb9db19965d0075d5835b8837649b2728fd (diff)
downloadPeerTube-a02b93ce756d646a59cef57b5e4ff53c2bb30bec.tar.gz
PeerTube-a02b93ce756d646a59cef57b5e4ff53c2bb30bec.tar.zst
PeerTube-a02b93ce756d646a59cef57b5e4ff53c2bb30bec.zip
Fix lint
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-update.component.ts')
-rw-r--r--client/src/app/+videos/+video-edit/video-update.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+videos/+video-edit/video-update.component.ts b/client/src/app/+videos/+video-edit/video-update.component.ts
index 7bd6eb553..581199d65 100644
--- a/client/src/app/+videos/+video-edit/video-update.component.ts
+++ b/client/src/app/+videos/+video-edit/video-update.component.ts
@@ -101,7 +101,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
101 101
102 this.video.patch(this.form.value) 102 this.video.patch(this.form.value)
103 103
104 this.loadingBar.start() 104 this.loadingBar.useRef().start()
105 this.isUpdatingVideo = true 105 this.isUpdatingVideo = true
106 106
107 // Update the video 107 // Update the video
@@ -114,13 +114,13 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
114 () => { 114 () => {
115 this.updateDone = true 115 this.updateDone = true
116 this.isUpdatingVideo = false 116 this.isUpdatingVideo = false
117 this.loadingBar.complete() 117 this.loadingBar.useRef().complete()
118 this.notifier.success(this.i18n('Video updated.')) 118 this.notifier.success(this.i18n('Video updated.'))
119 this.router.navigate([ '/videos/watch', this.video.uuid ]) 119 this.router.navigate([ '/videos/watch', this.video.uuid ])
120 }, 120 },
121 121
122 err => { 122 err => {
123 this.loadingBar.complete() 123 this.loadingBar.useRef().complete()
124 this.isUpdatingVideo = false 124 this.isUpdatingVideo = false
125 this.notifier.error(err.message) 125 this.notifier.error(err.message)
126 console.error(err) 126 console.error(err)