X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-edit%2Fvideo-update-routing.module.ts;h=564b8fb45b89f7e2a773e6251e9d25ba2c34d608;hb=0c4bacbff53bc732f5a2677d62a6ead7752e2405;hp=1d06a7ac3243ade492a3e6616477caa7730184d9;hpb=a685e25ca05f08ad1b3f7fbaccc8744727bd8d27;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/+video-edit/video-update-routing.module.ts b/client/src/app/videos/+video-edit/video-update-routing.module.ts index 1d06a7ac3..564b8fb45 100644 --- a/client/src/app/videos/+video-edit/video-update-routing.module.ts +++ b/client/src/app/videos/+video-edit/video-update-routing.module.ts @@ -3,13 +3,20 @@ import { RouterModule, Routes } from '@angular/router' 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, - canActivateChild: [ MetaGuard ] + canActivate: [ MetaGuard, LoginGuard ], + canDeactivate: [ CanDeactivateGuard ], + resolve: { + videoData: VideoUpdateResolver + } } ]