]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/plugins/plugins.routes.ts
Add video edition finished notification
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / plugins / plugins.routes.ts
CommitLineData
d00dc28d 1import { Routes } from '@angular/router'
d00dc28d
C
2import { PluginListInstalledComponent } from '@app/+admin/plugins/plugin-list-installed/plugin-list-installed.component'
3import { PluginSearchComponent } from '@app/+admin/plugins/plugin-search/plugin-search.component'
4import { PluginShowInstalledComponent } from '@app/+admin/plugins/plugin-show-installed/plugin-show-installed.component'
583eb04b
C
5import { UserRightGuard } from '@app/core'
6import { UserRight } from '@shared/models'
d00dc28d
C
7
8export const PluginsRoutes: Routes = [
9 {
10 path: 'plugins',
d00dc28d
C
11 canActivate: [ UserRightGuard ],
12 data: {
13 userRight: UserRight.MANAGE_PLUGINS
14 },
15 children: [
16 {
17 path: '',
18 redirectTo: 'list-installed',
19 pathMatch: 'full'
20 },
21 {
22 path: 'list-installed',
23 component: PluginListInstalledComponent,
24 data: {
25 meta: {
f29f487e 26 title: $localize`List installed plugins`
d00dc28d
C
27 }
28 }
29 },
30 {
31 path: 'search',
32 component: PluginSearchComponent,
33 data: {
34 meta: {
f29f487e 35 title: $localize`Search plugins`
d00dc28d
C
36 }
37 }
38 },
39 {
dba85a1e 40 path: 'show/:npmName',
d00dc28d
C
41 component: PluginShowInstalledComponent,
42 data: {
43 meta: {
f29f487e 44 title: $localize`Show plugin`
d00dc28d
C
45 }
46 }
47 }
48 ]
49 }
50]