diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-25 19:01:13 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-25 19:09:47 +0100 |
commit | f6a043df74bc755de8e658ba76a4e55980b96f66 (patch) | |
tree | fb2640669f59a89bd2f2d8ab52d296425a4c55ed /client/src/app/videos/+video-edit/video-add-routing.module.ts | |
parent | 94a5ff8a4a75d75bb9df542a39ce8769e7a7e6a4 (diff) | |
download | PeerTube-f6a043df74bc755de8e658ba76a4e55980b96f66.tar.gz PeerTube-f6a043df74bc755de8e658ba76a4e55980b96f66.tar.zst PeerTube-f6a043df74bc755de8e658ba76a4e55980b96f66.zip |
Improve video upload guard a little bit
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add-routing.module.ts')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add-routing.module.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-edit/video-add-routing.module.ts b/client/src/app/videos/+video-edit/video-add-routing.module.ts index 9541a2bd1..e0fef7158 100644 --- a/client/src/app/videos/+video-edit/video-add-routing.module.ts +++ b/client/src/app/videos/+video-edit/video-add-routing.module.ts | |||
@@ -4,7 +4,7 @@ import { RouterModule, Routes } from '@angular/router' | |||
4 | import { MetaGuard } from '@ngx-meta/core' | 4 | import { MetaGuard } from '@ngx-meta/core' |
5 | 5 | ||
6 | import { LoginGuard } from '../../core' | 6 | import { LoginGuard } from '../../core' |
7 | import { CanDeactivateGuard } from '../../shared/can-deactivate-guard.service' | 7 | import { CanDeactivateGuard } from '../../shared/guards/can-deactivate-guard.service' |
8 | import { VideoAddComponent } from './video-add.component' | 8 | import { VideoAddComponent } from './video-add.component' |
9 | 9 | ||
10 | const videoAddRoutes: Routes = [ | 10 | const videoAddRoutes: Routes = [ |
@@ -12,7 +12,7 @@ const videoAddRoutes: Routes = [ | |||
12 | path: '', | 12 | path: '', |
13 | component: VideoAddComponent, | 13 | component: VideoAddComponent, |
14 | canActivate: [ MetaGuard, LoginGuard ], | 14 | canActivate: [ MetaGuard, LoginGuard ], |
15 | canDeactivate: [CanDeactivateGuard] | 15 | canDeactivate: [ CanDeactivateGuard ] |
16 | } | 16 | } |
17 | ] | 17 | ] |
18 | 18 | ||