From 5c16e6bc9776ce706bafb198c1c14936674794d5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 15 Jun 2021 11:57:15 +0200 Subject: 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 --- client/src/app/+about/about-routing.module.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'client/src/app/+about/about-routing.module.ts') 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 = [ }, resolve: { instanceData: AboutInstanceResolver + } + }, + { + path: 'contact', + component: AboutInstanceComponent, + data: { + meta: { + title: $localize`Contact` + }, + isContact: true }, - children: [ - { - path: 'contact', - component: ContactAdminModalComponent - } - ] + resolve: { + instanceData: AboutInstanceResolver + } }, { path: 'peertube', -- cgit v1.2.3