aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-edit.ts
blob: 94a0f616817d3b5215e2f08cf9c3db84a5ef7273 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { FormReactive } from '@app/shared/shared-forms'
import { SelectChannelItem } from '@app/shared/shared-forms/select-channel.component'
import { VideoConstant, VideoPlaylistPrivacy } from '@shared/models'
import { VideoPlaylist } from '@shared/models/videos/playlist/video-playlist.model'

export abstract class MyAccountVideoPlaylistEdit extends FormReactive {
  // Declare it here to avoid errors in create template
  videoPlaylistToUpdate: VideoPlaylist
  userVideoChannels: SelectChannelItem[] = []
  videoPlaylistPrivacies: VideoConstant<VideoPlaylistPrivacy>[] = []

  abstract isCreation (): boolean
  abstract getFormButtonTitle (): string
}