ActivityPub-federated video streaming platform using P2P directly in your web browser
Hide support button if it is empty
Chocobozzz3bf1ec2ebb6d
diff --git a/client/src/app/shared/video/video.service.ts b/client/src/app/shared/video/video.service.tsindex 99da147798..a151a29831 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 || undefinedconst category = video.category || undefinedconst description = video.description || undefined+ const support = video.support || undefinedconst 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.htmlindex b8ec048b25..2869d13ddf 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 @@<span class="icon icon-dislike" title="Dislike this video"></span></div>- <div (click)="showSupportModal()" class="action-button action-button-support">+ <div *ngIf="video.support" (click)="showSupportModal()" class="action-button action-button-support"><span class="icon icon-support"></span><span class="icon-text">Support</span></div>