From 09700934b90e2ac7b1b9ed1694d9d4d52735e2e1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 19 Mar 2018 11:04:40 +0100 Subject: BEARKING CHANGE: Update videos API response before beta --- client/src/app/videos/+video-edit/video-update.component.ts | 2 +- .../videos/+video-watch/modal/video-download.component.html | 4 ++-- .../app/videos/+video-watch/modal/video-download.component.ts | 10 +++++----- client/src/app/videos/+video-watch/video-watch.component.html | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'client/src/app/videos') 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 2fc09278c..6cd204f72 100644 --- a/client/src/app/videos/+video-edit/video-update.component.ts +++ b/client/src/app/videos/+video-edit/video-update.component.ts @@ -72,7 +72,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { ] // We cannot set private a video that was not private - if (video.privacy !== VideoPrivacy.PRIVATE) { + if (video.privacy.id !== VideoPrivacy.PRIVATE) { const newVideoPrivacies = [] for (const p of this.videoPrivacies) { if (p.id !== VideoPrivacy.PRIVATE) newVideoPrivacies.push(p) diff --git a/client/src/app/videos/+video-watch/modal/video-download.component.html b/client/src/app/videos/+video-watch/modal/video-download.component.html index f8f17a471..617892b11 100644 --- a/client/src/app/videos/+video-watch/modal/video-download.component.html +++ b/client/src/app/videos/+video-watch/modal/video-download.component.html @@ -9,8 +9,8 @@ @@ -131,7 +131,7 @@ Category - {{ video.categoryLabel }} + {{ video.category.label }} @@ -140,7 +140,7 @@ Licence - {{ video.licenceLabel }} + {{ video.licence.label }} @@ -149,7 +149,7 @@ Language - {{ video.languageLabel }} + {{ video.language.label }} -- cgit v1.2.3