diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-03 10:31:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-03 10:33:08 +0100 |
commit | b42f9c400e7b677046ab0034a3cf7aaaa73ecb6d (patch) | |
tree | dd00268a13ef51c77ceaaeb2ffbcd874e6f177df /client/src/app/+about/about-routing.module.ts | |
parent | a15871560f80e07386c1dabb8370cd2664ecfd1f (diff) | |
download | PeerTube-b42f9c400e7b677046ab0034a3cf7aaaa73ecb6d.tar.gz PeerTube-b42f9c400e7b677046ab0034a3cf7aaaa73ecb6d.tar.zst PeerTube-b42f9c400e7b677046ab0034a3cf7aaaa73ecb6d.zip |
Use a resolver for the about page
Diffstat (limited to 'client/src/app/+about/about-routing.module.ts')
-rw-r--r-- | client/src/app/+about/about-routing.module.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/+about/about-routing.module.ts b/client/src/app/+about/about-routing.module.ts index 33e5070cb..91ccb846f 100644 --- a/client/src/app/+about/about-routing.module.ts +++ b/client/src/app/+about/about-routing.module.ts | |||
@@ -5,6 +5,7 @@ import { AboutComponent } from './about.component' | |||
5 | import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component' | 5 | import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component' |
6 | import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component' | 6 | import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component' |
7 | import { AboutFollowsComponent } from '@app/+about/about-follows/about-follows.component' | 7 | import { AboutFollowsComponent } from '@app/+about/about-follows/about-follows.component' |
8 | import { AboutInstanceResolver } from '@app/+about/about-instance/about-instance.resolver' | ||
8 | 9 | ||
9 | const aboutRoutes: Routes = [ | 10 | const aboutRoutes: Routes = [ |
10 | { | 11 | { |
@@ -24,6 +25,9 @@ const aboutRoutes: Routes = [ | |||
24 | meta: { | 25 | meta: { |
25 | title: 'About this instance' | 26 | title: 'About this instance' |
26 | } | 27 | } |
28 | }, | ||
29 | resolve: { | ||
30 | instanceData: AboutInstanceResolver | ||
27 | } | 31 | } |
28 | }, | 32 | }, |
29 | { | 33 | { |