1
0
Fork 0

Hide support button if it is empty

This commit is contained in:
Chocobozzz 2018-02-21 08:49:05 +01:00
parent a41e183c03
commit 3bf1ec2ebb
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 3 additions and 2 deletions

View file

@ -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
}

View file

@ -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>