diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-11 09:22:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-11 09:41:55 +0200 |
commit | 9abd170dec9a0b929da1f0947e3c7019e38631da (patch) | |
tree | d43418b375d306dcf96af1e9c2f8b6a6775e6e22 /client/src/app/+my-account | |
parent | 02c01341f4dae30ec6b81fcb644952393d73c4a8 (diff) | |
download | PeerTube-9abd170dec9a0b929da1f0947e3c7019e38631da.tar.gz PeerTube-9abd170dec9a0b929da1f0947e3c7019e38631da.tar.zst PeerTube-9abd170dec9a0b929da1f0947e3c7019e38631da.zip |
Fix tags in search filters
Diffstat (limited to 'client/src/app/+my-account')
2 files changed, 6 insertions, 8 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 e61509efd..56060359a 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 | |||
@@ -68,13 +68,10 @@ | |||
68 | 68 | ||
69 | <div class="form-group"> | 69 | <div class="form-group"> |
70 | <label i18n>Channel</label> | 70 | <label i18n>Channel</label> |
71 | <div class="peertube-select-container"> | 71 | |
72 | <select formControlName="videoChannelId" class="form-control"> | 72 | <my-select-channel |
73 | <option i18n value="undefined" disabled>Channel to bind the playlist to</option> | 73 | labelForId="videoChannelIdl" [items]="userVideoChannels" formControlName="videoChannelId" |
74 | <option></option> | 74 | ></my-select-channel> |
75 | <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> | ||
76 | </select> | ||
77 | </div> | ||
78 | 75 | ||
79 | <div *ngIf="formErrors['videoChannelId']" class="form-error"> | 76 | <div *ngIf="formErrors['videoChannelId']" class="form-error"> |
80 | {{ formErrors['videoChannelId'] }} | 77 | {{ formErrors['videoChannelId'] }} |
diff --git a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.ts b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.ts index 7ae8de75e..94a0f6168 100644 --- a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.ts +++ b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.ts | |||
@@ -1,11 +1,12 @@ | |||
1 | import { FormReactive } from '@app/shared/shared-forms' | 1 | import { FormReactive } from '@app/shared/shared-forms' |
2 | import { SelectChannelItem } from '@app/shared/shared-forms/select-channel.component' | ||
2 | import { VideoConstant, VideoPlaylistPrivacy } from '@shared/models' | 3 | import { VideoConstant, VideoPlaylistPrivacy } from '@shared/models' |
3 | import { VideoPlaylist } from '@shared/models/videos/playlist/video-playlist.model' | 4 | import { VideoPlaylist } from '@shared/models/videos/playlist/video-playlist.model' |
4 | 5 | ||
5 | export abstract class MyAccountVideoPlaylistEdit extends FormReactive { | 6 | export abstract class MyAccountVideoPlaylistEdit extends FormReactive { |
6 | // Declare it here to avoid errors in create template | 7 | // Declare it here to avoid errors in create template |
7 | videoPlaylistToUpdate: VideoPlaylist | 8 | videoPlaylistToUpdate: VideoPlaylist |
8 | userVideoChannels: { id: number, label: string }[] = [] | 9 | userVideoChannels: SelectChannelItem[] = [] |
9 | videoPlaylistPrivacies: VideoConstant<VideoPlaylistPrivacy>[] = [] | 10 | videoPlaylistPrivacies: VideoConstant<VideoPlaylistPrivacy>[] = [] |
10 | 11 | ||
11 | abstract isCreation (): boolean | 12 | abstract isCreation (): boolean |