diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-16 18:09:31 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-16 18:09:31 +0200 |
commit | 308c427551c3e20cd9172be58636d8c178f5ae70 (patch) | |
tree | 10c96e81ccf8da8f7460fc76f90963e3a7f6ac9c /client/src/app/videos/+video-edit/video-update-routing.module.ts | |
parent | ef4c78da4f0da61aebfa42f6e8420bf431a68bc8 (diff) | |
download | PeerTube-308c427551c3e20cd9172be58636d8c178f5ae70.tar.gz PeerTube-308c427551c3e20cd9172be58636d8c178f5ae70.tar.zst PeerTube-308c427551c3e20cd9172be58636d8c178f5ae70.zip |
Use a resolver when updating the video
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 | 6 |
1 files changed, 5 insertions, 1 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 22c27a072..dfeeb8a90 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 | |||
@@ -5,12 +5,16 @@ import { MetaGuard } from '@ngx-meta/core' | |||
5 | 5 | ||
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 | 9 | ||
9 | const videoUpdateRoutes: Routes = [ | 10 | const videoUpdateRoutes: Routes = [ |
10 | { | 11 | { |
11 | path: '', | 12 | path: '', |
12 | component: VideoUpdateComponent, | 13 | component: VideoUpdateComponent, |
13 | canActivate: [ MetaGuard, LoginGuard ] | 14 | canActivate: [ MetaGuard, LoginGuard ], |
15 | resolve: { | ||
16 | videoData: VideoUpdateResolver | ||
17 | } | ||
14 | } | 18 | } |
15 | ] | 19 | ] |
16 | 20 | ||