aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-edit
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/video-edit')
-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 9ee7ca6a8..6c57a23d8 100644
--- a/client/src/app/videos/video-edit/video-update.component.ts
+++ b/client/src/app/videos/video-edit/video-update.component.ts
@@ -85,8 +85,8 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
85 this.videoLicences = this.videoService.videoLicences 85 this.videoLicences = this.videoService.videoLicences
86 this.videoLanguages = this.videoService.videoLanguages 86 this.videoLanguages = this.videoService.videoLanguages
87 87
88 const id = this.route.snapshot.params['id'] 88 const uuid: string = this.route.snapshot.params['uuid']
89 this.videoService.getVideo(id) 89 this.videoService.getVideo(uuid)
90 .subscribe( 90 .subscribe(
91 video => { 91 video => {
92 this.video = video 92 this.video = video
@@ -118,7 +118,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
118 .subscribe( 118 .subscribe(
119 () => { 119 () => {
120 this.notificationsService.success('Success', 'Video updated.') 120 this.notificationsService.success('Success', 'Video updated.')
121 this.router.navigate([ '/videos/watch', this.video.id ]) 121 this.router.navigate([ '/videos/watch', this.video.uuid ])
122 }, 122 },
123 123
124 err => { 124 err => {