]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+video-studio/video-studio-routing.module.ts
Fix confirm modal containing 2 inputs
[github/Chocobozzz/PeerTube.git] / client / src / app / +video-studio / video-studio-routing.module.ts
index bcd9b79a5cb548b0e44f029e7c761b48fce36c33..9d276be7c813833bc39b74575db56c72c536fff8 100644 (file)
@@ -1,10 +1,13 @@
 import { NgModule } from '@angular/core'
 import { RouterModule, Routes } from '@angular/router'
-import { VideoStudioEditComponent, VideoStudioEditResolver } from './edit'
+import { LoginGuard } from '@app/core'
+import { VideoResolver } from '@app/shared/shared-main'
+import { VideoStudioEditComponent } from './edit'
 
 const videoStudioRoutes: Routes = [
   {
     path: '',
+    canActivateChild: [ LoginGuard ],
     children: [
       {
         path: 'edit/:videoId',
@@ -15,7 +18,7 @@ const videoStudioRoutes: Routes = [
           }
         },
         resolve: {
-          video: VideoStudioEditResolver
+          video: VideoResolver
         }
       }
     ]