diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-15 11:57:15 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-06-15 14:15:10 +0200 |
commit | 5c16e6bc9776ce706bafb198c1c14936674794d5 (patch) | |
tree | f0ff2273f4a7ad1fc7fc92c9f9e360ef86eec204 /client/src/app/+about/about-routing.module.ts | |
parent | 089cfa65697b60e6ff109f9bf517458908b7c855 (diff) | |
download | PeerTube-5c16e6bc9776ce706bafb198c1c14936674794d5.tar.gz PeerTube-5c16e6bc9776ce706bafb198c1c14936674794d5.tar.zst PeerTube-5c16e6bc9776ce706bafb198c1c14936674794d5.zip |
Cleanup contact form with URL
Parent component still have the responsability to explicitely open the
modal
Rely on data router param to open or not the modal
Diffstat (limited to 'client/src/app/+about/about-routing.module.ts')
-rw-r--r-- | client/src/app/+about/about-routing.module.ts | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/client/src/app/+about/about-routing.module.ts b/client/src/app/+about/about-routing.module.ts index c810ca272..3974231e3 100644 --- a/client/src/app/+about/about-routing.module.ts +++ b/client/src/app/+about/about-routing.module.ts | |||
@@ -27,13 +27,20 @@ const aboutRoutes: Routes = [ | |||
27 | }, | 27 | }, |
28 | resolve: { | 28 | resolve: { |
29 | instanceData: AboutInstanceResolver | 29 | instanceData: AboutInstanceResolver |
30 | } | ||
31 | }, | ||
32 | { | ||
33 | path: 'contact', | ||
34 | component: AboutInstanceComponent, | ||
35 | data: { | ||
36 | meta: { | ||
37 | title: $localize`Contact` | ||
38 | }, | ||
39 | isContact: true | ||
30 | }, | 40 | }, |
31 | children: [ | 41 | resolve: { |
32 | { | 42 | instanceData: AboutInstanceResolver |
33 | path: 'contact', | 43 | } |
34 | component: ContactAdminModalComponent | ||
35 | } | ||
36 | ] | ||
37 | }, | 44 | }, |
38 | { | 45 | { |
39 | path: 'peertube', | 46 | path: 'peertube', |