aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+my-account/+my-account-video-channels/my-account-video-channel-edit.ts
blob: 710c51d8e0ee53bcdd31347d82eec21a52807737 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                       

                                                                      

                                                                                   
                      
 

                                        
 
                                                                                              
                                                     




                                       
 
import { FormReactive } from '@app/shared/shared-forms'
import { VideoChannel } from '@app/shared/shared-main'

export abstract class MyAccountVideoChannelEdit extends FormReactive {
  // We need it even in the create component because it's used in the edit template
  videoChannelToUpdate: VideoChannel
  instanceHost: string

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

  // We need this method so angular does not complain in child template that doesn't need this
  onAvatarChange (formData: FormData) { /* empty */ }

  // Should be implemented by the child
  isBulkUpdateVideosDisplayed () {
    return false
  }
}