]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-edit/video-update-routing.module.ts
provide specific engine boundaries for nodejs and yarn
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / video-update-routing.module.ts
index 22c27a072938b93dd7341589ef7a9398f80b481f..564b8fb45b89f7e2a773e6251e9d25ba2c34d608 100644 (file)
@@ -5,12 +5,18 @@ import { MetaGuard } from '@ngx-meta/core'
 
 import { LoginGuard } from '../../core'
 import { VideoUpdateComponent } from './video-update.component'
+import { VideoUpdateResolver } from '@app/videos/+video-edit/video-update.resolver'
+import { CanDeactivateGuard } from '@app/shared/guards/can-deactivate-guard.service'
 
 const videoUpdateRoutes: Routes = [
   {
     path: '',
     component: VideoUpdateComponent,
-    canActivate: [ MetaGuard, LoginGuard ]
+    canActivate: [ MetaGuard, LoginGuard ],
+    canDeactivate: [ CanDeactivateGuard ],
+    resolve: {
+      videoData: VideoUpdateResolver
+    }
   }
 ]