aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-21 08:49:05 +0100
committerChocobozzz <me@florianbigard.com>2018-02-21 08:49:05 +0100
commit3bf1ec2ebb6da3ffbfb2af505268a47d38956d28 (patch)
tree050870fdcb3ad593f3e3c5f4ecbc0e2fb04cc26b /client/src/app/shared/video
parenta41e183c03ec60dae8cd7d62ca05036876b78824 (diff)
downloadPeerTube-3bf1ec2ebb6da3ffbfb2af505268a47d38956d28.tar.gz
PeerTube-3bf1ec2ebb6da3ffbfb2af505268a47d38956d28.tar.zst
PeerTube-3bf1ec2ebb6da3ffbfb2af505268a47d38956d28.zip
Hide support button if it is empty
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r--client/src/app/shared/video/video.service.ts3
1 files changed, 2 insertions, 1 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 {
51 const licence = video.licence || undefined 51 const licence = video.licence || undefined
52 const category = video.category || undefined 52 const category = video.category || undefined
53 const description = video.description || undefined 53 const description = video.description || undefined
54 const support = video.support || undefined
54 55
55 const body: VideoUpdate = { 56 const body: VideoUpdate = {
56 name: video.name, 57 name: video.name,
57 category, 58 category,
58 licence, 59 licence,
59 language, 60 language,
61 support,
60 description, 62 description,
61 privacy: video.privacy, 63 privacy: video.privacy,
62 tags: video.tags, 64 tags: video.tags,
63 nsfw: video.nsfw, 65 nsfw: video.nsfw,
64 commentsEnabled: video.commentsEnabled, 66 commentsEnabled: video.commentsEnabled,
65 support: video.support,
66 thumbnailfile: video.thumbnailfile, 67 thumbnailfile: video.thumbnailfile,
67 previewfile: video.previewfile 68 previewfile: video.previewfile
68 } 69 }