diff options
Diffstat (limited to 'client/src/app/videos/+video-edit/video-update-routing.module.ts')
-rw-r--r-- | client/src/app/videos/+video-edit/video-update-routing.module.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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 dfeeb8a90..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 | |||
@@ -6,12 +6,14 @@ import { MetaGuard } from '@ngx-meta/core' | |||
6 | import { LoginGuard } from '../../core' | 6 | import { LoginGuard } from '../../core' |
7 | import { VideoUpdateComponent } from './video-update.component' | 7 | import { VideoUpdateComponent } from './video-update.component' |
8 | import { VideoUpdateResolver } from '@app/videos/+video-edit/video-update.resolver' | 8 | import { VideoUpdateResolver } from '@app/videos/+video-edit/video-update.resolver' |
9 | import { CanDeactivateGuard } from '@app/shared/guards/can-deactivate-guard.service' | ||
9 | 10 | ||
10 | const videoUpdateRoutes: Routes = [ | 11 | const videoUpdateRoutes: Routes = [ |
11 | { | 12 | { |
12 | path: '', | 13 | path: '', |
13 | component: VideoUpdateComponent, | 14 | component: VideoUpdateComponent, |
14 | canActivate: [ MetaGuard, LoginGuard ], | 15 | canActivate: [ MetaGuard, LoginGuard ], |
16 | canDeactivate: [ CanDeactivateGuard ], | ||
15 | resolve: { | 17 | resolve: { |
16 | videoData: VideoUpdateResolver | 18 | videoData: VideoUpdateResolver |
17 | } | 19 | } |