diff options
author | Kimsible <kimsible@users.noreply.github.com> | 2021-06-04 14:42:05 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-06-15 14:15:10 +0200 |
commit | dfca0f5fc232a1476d4b7296404fb91dbd60b96b (patch) | |
tree | 3037c66a66acae4c27880dc6a73468f82680b3fe /client/src/app/+about/about-routing.module.ts | |
parent | eae0365b5c5468e51e9795b0e894815ebda86b4a (diff) | |
download | PeerTube-dfca0f5fc232a1476d4b7296404fb91dbd60b96b.tar.gz PeerTube-dfca0f5fc232a1476d4b7296404fb91dbd60b96b.tar.zst PeerTube-dfca0f5fc232a1476d4b7296404fb91dbd60b96b.zip |
Add /about/instance/contact contact-form route with prefilled queryParams subject&body
Diffstat (limited to 'client/src/app/+about/about-routing.module.ts')
-rw-r--r-- | client/src/app/+about/about-routing.module.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/client/src/app/+about/about-routing.module.ts b/client/src/app/+about/about-routing.module.ts index 880bf4a39..c810ca272 100644 --- a/client/src/app/+about/about-routing.module.ts +++ b/client/src/app/+about/about-routing.module.ts | |||
@@ -3,6 +3,7 @@ import { RouterModule, Routes } from '@angular/router' | |||
3 | import { AboutFollowsComponent } from '@app/+about/about-follows/about-follows.component' | 3 | import { AboutFollowsComponent } from '@app/+about/about-follows/about-follows.component' |
4 | import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component' | 4 | import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component' |
5 | import { AboutInstanceResolver } from '@app/+about/about-instance/about-instance.resolver' | 5 | import { AboutInstanceResolver } from '@app/+about/about-instance/about-instance.resolver' |
6 | import { ContactAdminModalComponent } from '@app/+about/about-instance/contact-admin-modal.component' | ||
6 | import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component' | 7 | import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component' |
7 | import { AboutComponent } from './about.component' | 8 | import { AboutComponent } from './about.component' |
8 | 9 | ||
@@ -26,7 +27,13 @@ const aboutRoutes: Routes = [ | |||
26 | }, | 27 | }, |
27 | resolve: { | 28 | resolve: { |
28 | instanceData: AboutInstanceResolver | 29 | instanceData: AboutInstanceResolver |
29 | } | 30 | }, |
31 | children: [ | ||
32 | { | ||
33 | path: 'contact', | ||
34 | component: ContactAdminModalComponent | ||
35 | } | ||
36 | ] | ||
30 | }, | 37 | }, |
31 | { | 38 | { |
32 | path: 'peertube', | 39 | path: 'peertube', |