diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-14 14:55:10 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | 978c9d497b36e52196eb7e755406571e5d57cbc7 (patch) | |
tree | 6984ab06e2c64542221f7329f7560d9e8025e660 /client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.component.html | |
parent | c5e4e36d2a1ad777233177c11f7f742df717a8e8 (diff) | |
download | PeerTube-978c9d497b36e52196eb7e755406571e5d57cbc7.tar.gz PeerTube-978c9d497b36e52196eb7e755406571e5d57cbc7.tar.zst PeerTube-978c9d497b36e52196eb7e755406571e5d57cbc7.zip |
Add playlist channel validator when playlist is public
Diffstat (limited to 'client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.component.html')
-rw-r--r-- | client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.component.html | 14 |
1 files changed, 9 insertions, 5 deletions
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 @@ | |||
6 | <div class="row"> | 6 | <div class="row"> |
7 | <div class="col-md-12 col-xl-6"> | 7 | <div class="col-md-12 col-xl-6"> |
8 | <div class="form-group"> | 8 | <div class="form-group"> |
9 | <label i18n for="display-name">Display name</label> | 9 | <label i18n for="displayName">Display name</label> |
10 | <input | 10 | <input |
11 | type="text" id="display-name" | 11 | type="text" id="displayName" |
12 | formControlName="display-name" [ngClass]="{ 'input-error': formErrors['display-name'] }" | 12 | formControlName="displayName" [ngClass]="{ 'input-error': formErrors['displayName'] }" |
13 | > | 13 | > |
14 | <div *ngIf="formErrors['display-name']" class="form-error"> | 14 | <div *ngIf="formErrors['displayName']" class="form-error"> |
15 | {{ formErrors['display-name'] }} | 15 | {{ formErrors['displayName'] }} |
16 | </div> | 16 | </div> |
17 | </div> | 17 | </div> |
18 | 18 | ||
@@ -50,6 +50,10 @@ | |||
50 | <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> | 50 | <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> |
51 | </select> | 51 | </select> |
52 | </div> | 52 | </div> |
53 | |||
54 | <div *ngIf="formErrors['videoChannelId']" class="form-error"> | ||
55 | {{ formErrors['videoChannelId'] }} | ||
56 | </div> | ||
53 | </div> | 57 | </div> |
54 | 58 | ||
55 | <div class="form-group"> | 59 | <div class="form-group"> |