X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bmanage%2Fvideo-channel-edit%2Fvideo-channel-update.component.ts;h=6b494791273671b6608f6a8a8a344f6fdeab9d58;hb=cb28bb92daf1a0e123bc0144030c2bc65b865f4a;hp=21b6167b225814ea9acf3b703eb1a7eeb51f79a3;hpb=c3edc5b074aa4bb1861ed0a94d3713808e87170f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+manage/video-channel-edit/video-channel-update.component.ts b/client/src/app/+manage/video-channel-edit/video-channel-update.component.ts index 21b6167b2..6b4947912 100644 --- a/client/src/app/+manage/video-channel-edit/video-channel-update.component.ts +++ b/client/src/app/+manage/video-channel-edit/video-channel-update.component.ts @@ -96,7 +96,7 @@ export class VideoChannelUpdateComponent extends VideoChannelEdit implements OnI this.notifier.success($localize`Video channel ${videoChannelUpdate.displayName} updated.`) - this.redirectService.redirectToPreviousRoute([ '/c', this.videoChannel.name ]) + this.redirectService.redirectToPreviousRoute('/c/' + this.videoChannel.name) }, error: err => { @@ -111,7 +111,7 @@ export class VideoChannelUpdateComponent extends VideoChannelEdit implements OnI next: data => { this.notifier.success($localize`Avatar changed.`) - this.videoChannel.updateAvatar(data.avatar) + this.videoChannel.updateAvatar(data.avatars) }, error: (err: HttpErrorResponse) => genericUploadErrorHandler({ @@ -141,7 +141,7 @@ export class VideoChannelUpdateComponent extends VideoChannelEdit implements OnI next: data => { this.notifier.success($localize`Banner changed.`) - this.videoChannel.updateBanner(data.banner) + this.videoChannel.updateBanner(data.banners) }, error: (err: HttpErrorResponse) => genericUploadErrorHandler({