diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-10 21:15:28 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-10 21:16:36 +0200 |
commit | d8e689b864749648d03cf4391fd4a475126f01cd (patch) | |
tree | 299713e3c056873ba6fff5247b8f49a542f0bf45 /client/src/app/videos/videos-routing.module.ts | |
parent | a184c71b526000f60f00649d260638723d426e6a (diff) | |
download | PeerTube-d8e689b864749648d03cf4391fd4a475126f01cd.tar.gz PeerTube-d8e689b864749648d03cf4391fd4a475126f01cd.tar.zst PeerTube-d8e689b864749648d03cf4391fd4a475126f01cd.zip |
Client: add basic support for updating a video
Diffstat (limited to 'client/src/app/videos/videos-routing.module.ts')
-rw-r--r-- | client/src/app/videos/videos-routing.module.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts index 005e9def6..70968b4d1 100644 --- a/client/src/app/videos/videos-routing.module.ts +++ b/client/src/app/videos/videos-routing.module.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { NgModule } from '@angular/core'; | 1 | import { NgModule } from '@angular/core'; |
2 | import { RouterModule, Routes } from '@angular/router'; | 2 | import { RouterModule, Routes } from '@angular/router'; |
3 | 3 | ||
4 | import { VideoAddComponent } from './video-add'; | 4 | import { VideoAddComponent, VideoUpdateComponent } from './video-edit'; |
5 | import { VideoListComponent } from './video-list'; | 5 | import { VideoListComponent } from './video-list'; |
6 | import { VideosComponent } from './videos.component'; | 6 | import { VideosComponent } from './videos.component'; |
7 | import { VideoWatchComponent } from './video-watch'; | 7 | import { VideoWatchComponent } from './video-watch'; |
@@ -30,6 +30,15 @@ const videosRoutes: Routes = [ | |||
30 | } | 30 | } |
31 | }, | 31 | }, |
32 | { | 32 | { |
33 | path: 'edit/:id', | ||
34 | component: VideoUpdateComponent, | ||
35 | data: { | ||
36 | meta: { | ||
37 | title: 'Edit a video' | ||
38 | } | ||
39 | } | ||
40 | }, | ||
41 | { | ||
33 | path: ':id', | 42 | path: ':id', |
34 | redirectTo: 'watch/:id' | 43 | redirectTo: 'watch/:id' |
35 | }, | 44 | }, |