diff --git a/client/src/app/+manage/manage-routing.module.ts b/client/src/app/+manage/manage-routing.module.ts new file mode 100644 index 000000000000..14ae4f1e0fad --- /dev/null +++ b/client/src/app/+manage/manage-routing.module.ts @@ -0,0 +1,31 @@ +import { NgModule } from '@angular/core' +import { RouterModule, Routes } from '@angular/router' +import { VideoChannelCreateComponent } from './video-channel-edit/video-channel-create.component' +import { VideoChannelUpdateComponent } from './video-channel-edit/video-channel-update.component' + +const manageRoutes: Routes = [ + { + path: 'create', + component: VideoChannelCreateComponent, + data: { + meta: { + title: $localize`Create a new video channel` + } + } + }, + { + path: 'update/:videoChannelName', + component: VideoChannelUpdateComponent, + data: { + meta: { + title: $localize`Update video channel` + } + } + } +] + +@NgModule({ + imports: [ RouterModule.forChild(manageRoutes) ], + exports: [ RouterModule ] +}) +export class ManageRoutingModule {} diff --git a/client/src/app/+manage/manage.module.ts b/client/src/app/+manage/manage.module.ts new file mode 100644 index 000000000000..5abbf54f5826 --- /dev/null +++ b/client/src/app/+manage/manage.module.ts @@ -0,0 +1,36 @@ +import { NgModule } from '@angular/core' +import { SharedFormModule } from '@app/shared/shared-forms' +import { SharedGlobalIconModule } from '@app/shared/shared-icons' +import { SharedMainModule } from '@app/shared/shared-main' +import { SharedModerationModule } from '@app/shared/shared-moderation' +import { SharedSupportModal } from '@app/shared/shared-support-modal' +import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription' +import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature' +import { SharedVideoPlaylistModule } from '@app/shared/shared-video-playlist' +import { SharedActorImageModule } from '../shared/shared-actor-image/shared-actor-image.module' +import { SharedActorImageEditModule } from '@app/shared/shared-actor-image-edit' +import { VideoChannelCreateComponent } from './video-channel-edit/video-channel-create.component' +import { VideoChannelUpdateComponent } from './video-channel-edit/video-channel-update.component' +import { ManageRoutingModule } from './manage-routing.module' + +@NgModule({ + imports: [ + ManageRoutingModule, + SharedMainModule, + SharedFormModule, + SharedGlobalIconModule, + SharedActorImageModule, + SharedActorImageEditModule + ], + + declarations: [ + VideoChannelCreateComponent, + VideoChannelUpdateComponent + ], + + exports: [ + ], + + providers: [] +}) +export class ManageModule { } diff --git a/client/src/app/+video-channels/video-channel-edit/video-channel-create.component.ts b/client/src/app/+manage/video-channel-edit/video-channel-create.component.ts similarity index 100% rename from client/src/app/+video-channels/video-channel-edit/video-channel-create.component.ts rename to client/src/app/+manage/video-channel-edit/video-channel-create.component.ts diff --git a/client/src/app/+video-channels/video-channel-edit/video-channel-edit.component.html b/client/src/app/+manage/video-channel-edit/video-channel-edit.component.html similarity index 100% rename from client/src/app/+video-channels/video-channel-edit/video-channel-edit.component.html rename to client/src/app/+manage/video-channel-edit/video-channel-edit.component.html diff --git a/client/src/app/+video-channels/video-channel-edit/video-channel-edit.component.scss b/client/src/app/+manage/video-channel-edit/video-channel-edit.component.scss similarity index 100% rename from client/src/app/+video-channels/video-channel-edit/video-channel-edit.component.scss rename to client/src/app/+manage/video-channel-edit/video-channel-edit.component.scss diff --git a/client/src/app/+video-channels/video-channel-edit/video-channel-edit.ts b/client/src/app/+manage/video-channel-edit/video-channel-edit.ts similarity index 100% rename from client/src/app/+video-channels/video-channel-edit/video-channel-edit.ts rename to client/src/app/+manage/video-channel-edit/video-channel-edit.ts diff --git a/client/src/app/+video-channels/video-channel-edit/video-channel-update.component.ts b/client/src/app/+manage/video-channel-edit/video-channel-update.component.ts similarity index 100% rename from client/src/app/+video-channels/video-channel-edit/video-channel-update.component.ts rename to client/src/app/+manage/video-channel-edit/video-channel-update.component.ts diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels-routing.module.ts b/client/src/app/+my-library/+my-video-channels/my-video-channels-routing.module.ts index f103bacc4287..b4962ed356fd 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels-routing.module.ts +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels-routing.module.ts @@ -11,6 +11,14 @@ const myVideoChannelsRoutes: Routes = [ title: $localize`My video channels` } } + }, + { + path: 'create', + redirectTo: '/manage/create' + }, + { + path: 'update/:videoChannelName', + redirectTo: '/manage/update/:videoChannelName' } ] diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html index 92e2345abb3b..77947315bbb3 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html @@ -9,7 +9,7 @@