Hide support button if it is empty
This commit is contained in:
parent
a41e183c03
commit
3bf1ec2ebb
|
@ -51,18 +51,19 @@ export class VideoService {
|
||||||
const licence = video.licence || undefined
|
const licence = video.licence || undefined
|
||||||
const category = video.category || undefined
|
const category = video.category || undefined
|
||||||
const description = video.description || undefined
|
const description = video.description || undefined
|
||||||
|
const support = video.support || undefined
|
||||||
|
|
||||||
const body: VideoUpdate = {
|
const body: VideoUpdate = {
|
||||||
name: video.name,
|
name: video.name,
|
||||||
category,
|
category,
|
||||||
licence,
|
licence,
|
||||||
language,
|
language,
|
||||||
|
support,
|
||||||
description,
|
description,
|
||||||
privacy: video.privacy,
|
privacy: video.privacy,
|
||||||
tags: video.tags,
|
tags: video.tags,
|
||||||
nsfw: video.nsfw,
|
nsfw: video.nsfw,
|
||||||
commentsEnabled: video.commentsEnabled,
|
commentsEnabled: video.commentsEnabled,
|
||||||
support: video.support,
|
|
||||||
thumbnailfile: video.thumbnailfile,
|
thumbnailfile: video.thumbnailfile,
|
||||||
previewfile: video.previewfile
|
previewfile: video.previewfile
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<span class="icon icon-dislike" title="Dislike this video"></span>
|
<span class="icon icon-dislike" title="Dislike this video"></span>
|
||||||
</div>
|
</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 icon-support"></span>
|
||||||
<span class="icon-text">Support</span>
|
<span class="icon-text">Support</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue