diff --git a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-create.component.ts b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-create.component.ts index 61b61e221..87a10961f 100644 --- a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-create.component.ts +++ b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-create.component.ts @@ -35,13 +35,17 @@ export class MyAccountVideoPlaylistCreateComponent extends MyAccountVideoPlaylis ngOnInit () { this.buildForm({ - 'display-name': this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_DISPLAY_NAME, + displayName: this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_DISPLAY_NAME, privacy: this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_PRIVACY, description: this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_DESCRIPTION, videoChannelId: this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_CHANNEL_ID, thumbnailfile: null }) + this.form.get('privacy').valueChanges.subscribe(privacy => { + this.videoPlaylistValidatorsService.setChannelValidator(this.form.get('videoChannelId'), privacy) + }) + populateAsyncUserVideoChannels(this.authService, this.userVideoChannels) this.serverService.videoPlaylistPrivaciesLoaded.subscribe( @@ -60,7 +64,7 @@ export class MyAccountVideoPlaylistCreateComponent extends MyAccountVideoPlaylis const body = this.form.value const videoPlaylistCreate: VideoPlaylistCreate = { - displayName: body['display-name'], + displayName: body.displayName, privacy: body.privacy, description: body.description || null, videoChannelId: body.videoChannelId || null, diff --git a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.component.html b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.component.html index 5d1184218..303fc46f7 100644 --- a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.component.html +++ b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.component.html @@ -6,13 +6,13 @@