diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-07 11:31:23 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-07 11:31:23 +0200 |
commit | 7d8e778ad031873b2bcc273d281baf6559610f71 (patch) | |
tree | 5548c06134a8d9f2f574022c9bcb0978b6e4d4ed /client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts | |
parent | b0ae905e7b95a218d087d669c74d86a2679174ab (diff) | |
download | PeerTube-7d8e778ad031873b2bcc273d281baf6559610f71.tar.gz PeerTube-7d8e778ad031873b2bcc273d281baf6559610f71.tar.zst PeerTube-7d8e778ad031873b2bcc273d281baf6559610f71.zip |
Fix video channel update/create on empty fields
Diffstat (limited to 'client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts')
-rw-r--r-- | client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts b/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts index c3c0ae63a..0f03548ad 100644 --- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts +++ b/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts | |||
@@ -64,8 +64,8 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE | |||
64 | const body = this.form.value | 64 | const body = this.form.value |
65 | const videoChannelCreate: VideoChannelCreate = { | 65 | const videoChannelCreate: VideoChannelCreate = { |
66 | displayName: body['display-name'], | 66 | displayName: body['display-name'], |
67 | description: body.description, | 67 | description: body.description || undefined, |
68 | support: body.support | 68 | support: body.support || undefined |
69 | } | 69 | } |
70 | 70 | ||
71 | this.videoChannelService.createVideoChannel(videoChannelCreate).subscribe( | 71 | this.videoChannelService.createVideoChannel(videoChannelCreate).subscribe( |
@@ -84,6 +84,6 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE | |||
84 | } | 84 | } |
85 | 85 | ||
86 | getFormButtonTitle () { | 86 | getFormButtonTitle () { |
87 | return 'Create this video channel' | 87 | return 'Create' |
88 | } | 88 | } |
89 | } | 89 | } |