]>
Commit | Line | Data |
---|---|---|
67ed6552 C |
1 | import { FormReactive } from '@app/shared/shared-forms' |
2 | import { VideoChannel } from '@app/shared/shared-main' | |
08c1efbe | 3 | |
17119e4a | 4 | export abstract class MyVideoChannelEdit extends FormReactive { |
e1807a94 C |
5 | // We need it even in the create component because it's used in the edit template |
6 | videoChannelToUpdate: VideoChannel | |
7 | ||
08c1efbe C |
8 | abstract isCreation (): boolean |
9 | abstract getFormButtonTitle (): string | |
2fbe7f19 | 10 | |
17119e4a C |
11 | get instanceHost () { |
12 | return window.location.host | |
13 | } | |
14 | ||
14aa8556 | 15 | // We need this method so angular does not complain in child template that doesn't need this |
2fbe7f19 | 16 | onAvatarChange (formData: FormData) { /* empty */ } |
1ea7da81 | 17 | onAvatarDelete () { /* empty */ } |
cdeddff1 C |
18 | onBannerChange (formData: FormData) { /* empty */ } |
19 | onBannerDelete () { /* empty */ } | |
1e66b987 C |
20 | |
21 | // Should be implemented by the child | |
22 | isBulkUpdateVideosDisplayed () { | |
23 | return false | |
24 | } | |
08c1efbe | 25 | } |