aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-edit/video-update-routing.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-16 18:09:31 +0200
committerChocobozzz <me@florianbigard.com>2018-07-16 18:09:31 +0200
commit308c427551c3e20cd9172be58636d8c178f5ae70 (patch)
tree10c96e81ccf8da8f7460fc76f90963e3a7f6ac9c /client/src/app/videos/+video-edit/video-update-routing.module.ts
parentef4c78da4f0da61aebfa42f6e8420bf431a68bc8 (diff)
downloadPeerTube-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.ts6
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
6import { LoginGuard } from '../../core' 6import { LoginGuard } from '../../core'
7import { VideoUpdateComponent } from './video-update.component' 7import { VideoUpdateComponent } from './video-update.component'
8import { VideoUpdateResolver } from '@app/videos/+video-edit/video-update.resolver'
8 9
9const videoUpdateRoutes: Routes = [ 10const 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