From 0a6658fdcbd779ada8f3758048c326e997902d5a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jul 2017 16:01:56 +0200 Subject: Use global uuid instead of remoteId for videos --- client/src/app/videos/video-edit/video-update.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/videos/video-edit/video-update.component.ts') 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 { this.videoLicences = this.videoService.videoLicences this.videoLanguages = this.videoService.videoLanguages - const id = this.route.snapshot.params['id'] - this.videoService.getVideo(id) + const uuid: string = this.route.snapshot.params['uuid'] + this.videoService.getVideo(uuid) .subscribe( video => { this.video = video @@ -118,7 +118,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { .subscribe( () => { this.notificationsService.success('Success', 'Video updated.') - this.router.navigate([ '/videos/watch', this.video.id ]) + this.router.navigate([ '/videos/watch', this.video.uuid ]) }, err => { -- cgit v1.2.3