aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-08 12:09:54 +0200
committerChocobozzz <me@florianbigard.com>2021-04-08 13:38:04 +0200
commit27ec473f5306621643fcb169be7cfe6b15136265 (patch)
treebc4a8d81c5baa58ae1af6434731644da7c2df109 /client/src/app/+my-library/+my-video-channels/my-video-channel-edit.ts
parent84531547bc0934a2abda586d539f7455b455d488 (diff)
downloadPeerTube-27ec473f5306621643fcb169be7cfe6b15136265.tar.gz
PeerTube-27ec473f5306621643fcb169be7cfe6b15136265.tar.zst
PeerTube-27ec473f5306621643fcb169be7cfe6b15136265.zip
Set channel banner/avatar in creation form
Diffstat (limited to 'client/src/app/+my-library/+my-video-channels/my-video-channel-edit.ts')
-rw-r--r--client/src/app/+my-library/+my-video-channels/my-video-channel-edit.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.ts b/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.ts
index 0cdf2fe34..33bb90f14 100644
--- a/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.ts
+++ b/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.ts
@@ -2,8 +2,7 @@ import { FormReactive } from '@app/shared/shared-forms'
2import { VideoChannel } from '@app/shared/shared-main' 2import { VideoChannel } from '@app/shared/shared-main'
3 3
4export abstract class MyVideoChannelEdit extends FormReactive { 4export abstract class MyVideoChannelEdit extends FormReactive {
5 // We need it even in the create component because it's used in the edit template 5 videoChannel: VideoChannel
6 videoChannelToUpdate: VideoChannel
7 6
8 abstract isCreation (): boolean 7 abstract isCreation (): boolean
9 abstract getFormButtonTitle (): string 8 abstract getFormButtonTitle (): string
@@ -12,12 +11,6 @@ export abstract class MyVideoChannelEdit extends FormReactive {
12 return window.location.host 11 return window.location.host
13 } 12 }
14 13
15 // We need this method so angular does not complain in child template that doesn't need this
16 onAvatarChange (formData: FormData) { /* empty */ }
17 onAvatarDelete () { /* empty */ }
18 onBannerChange (formData: FormData) { /* empty */ }
19 onBannerDelete () { /* empty */ }
20
21 // Should be implemented by the child 14 // Should be implemented by the child
22 isBulkUpdateVideosDisplayed () { 15 isBulkUpdateVideosDisplayed () {
23 return false 16 return false