From 3bf1ec2ebb6da3ffbfb2af505268a47d38956d28 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 21 Feb 2018 08:49:05 +0100 Subject: Hide support button if it is empty --- client/src/app/shared/video/video.service.ts | 3 ++- client/src/app/videos/+video-watch/video-watch.component.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/app/shared/video/video.service.ts b/client/src/app/shared/video/video.service.ts index 99da14779..a151a2983 100644 --- a/client/src/app/shared/video/video.service.ts +++ b/client/src/app/shared/video/video.service.ts @@ -51,18 +51,19 @@ export class VideoService { const licence = video.licence || undefined const category = video.category || undefined const description = video.description || undefined + const support = video.support || undefined const body: VideoUpdate = { name: video.name, category, licence, language, + support, description, privacy: video.privacy, tags: video.tags, nsfw: video.nsfw, commentsEnabled: video.commentsEnabled, - support: video.support, thumbnailfile: video.thumbnailfile, previewfile: video.previewfile } diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html index b8ec048b2..2869d13dd 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html @@ -44,7 +44,7 @@ -
+
Support
-- cgit v1.2.3