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 --- .../src/app/shared/video-abuse/video-abuse.service.ts | 2 +- client/src/app/videos/shared/video.model.ts | 7 +++++-- client/src/app/videos/shared/video.service.ts | 18 +++++++++--------- .../app/videos/video-edit/video-update.component.ts | 6 +++--- .../videos/video-list/video-miniature.component.html | 4 ++-- .../app/videos/video-watch/video-share.component.ts | 2 +- .../app/videos/video-watch/video-watch.component.html | 2 +- .../app/videos/video-watch/video-watch.component.ts | 4 ++-- client/src/app/videos/videos-routing.module.ts | 8 ++++---- 9 files changed, 28 insertions(+), 25 deletions(-) (limited to 'client/src') diff --git a/client/src/app/shared/video-abuse/video-abuse.service.ts b/client/src/app/shared/video-abuse/video-abuse.service.ts index 32f13b430..636a02084 100644 --- a/client/src/app/shared/video-abuse/video-abuse.service.ts +++ b/client/src/app/shared/video-abuse/video-abuse.service.ts @@ -22,7 +22,7 @@ export class VideoAbuseService { return new RestDataSource(this.authHttp, VideoAbuseService.BASE_VIDEO_ABUSE_URL + 'abuse') } - reportVideo (id: string, reason: string) { + reportVideo (id: number, reason: string) { const body = { reason } diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index f5e16fc13..9ed6a0641 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts @@ -14,7 +14,8 @@ export class Video implements VideoServerModel { description: string duration: number durationLabel: string - id: string + id: number + uuid: string isLocal: boolean magnetUri: string name: string @@ -51,7 +52,8 @@ export class Video implements VideoServerModel { language: number description: string, duration: number - id: string, + id: number, + uuid: string, isLocal: boolean, magnetUri: string, name: string, @@ -75,6 +77,7 @@ export class Video implements VideoServerModel { this.duration = hash.duration this.durationLabel = Video.createDurationString(hash.duration) this.id = hash.id + this.uuid = hash.uuid this.isLocal = hash.isLocal this.magnetUri = hash.magnetUri this.name = hash.name diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts index dc12c0637..67091a8d8 100644 --- a/client/src/app/videos/shared/video.service.ts +++ b/client/src/app/videos/shared/video.service.ts @@ -52,8 +52,8 @@ export class VideoService { return this.loadVideoAttributeEnum('languages', this.videoLanguages) } - getVideo (id: string): Observable