]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-library/+my-video-channels/my-video-channel-update.component.ts
Reorganize left menu and account menu
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-library / +my-video-channels / my-video-channel-update.component.ts
similarity index 89%
rename from client/src/app/+my-account/+my-account-video-channels/my-account-video-channel-update.component.ts
rename to client/src/app/+my-library/+my-video-channels/my-video-channel-update.component.ts
index 01659b8daddd0251d4f326f3c87533daaf0ebea8..c6cb5ade651b4273d8110491514171dd228a53ce 100644 (file)
@@ -10,14 +10,14 @@ import {
 import { FormValidatorService } from '@app/shared/shared-forms'
 import { VideoChannel, VideoChannelService } from '@app/shared/shared-main'
 import { ServerConfig, VideoChannelUpdate } from '@shared/models'
-import { MyAccountVideoChannelEdit } from './my-account-video-channel-edit'
+import { MyVideoChannelEdit } from './my-video-channel-edit'
 
 @Component({
-  selector: 'my-account-video-channel-update',
-  templateUrl: './my-account-video-channel-edit.component.html',
-  styleUrls: [ './my-account-video-channel-edit.component.scss' ]
+  selector: 'my-video-channel-update',
+  templateUrl: './my-video-channel-edit.component.html',
+  styleUrls: [ './my-video-channel-edit.component.scss' ]
 })
-export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelEdit implements OnInit, OnDestroy {
+export class MyVideoChannelUpdateComponent extends MyVideoChannelEdit implements OnInit, OnDestroy {
   error: string
   videoChannelToUpdate: VideoChannel
 
@@ -91,7 +91,7 @@ export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelE
 
         this.notifier.success($localize`Video channel ${videoChannelUpdate.displayName} updated.`)
 
-        this.router.navigate([ '/my-account', 'video-channels' ])
+        this.router.navigate([ '/my-library', 'video-channels' ])
       },
 
       err => this.error = err.message