From b15cac627ff53415eb31ad6d9441ff5ad3d8c106 Mon Sep 17 00:00:00 2001 From: Jared Snider <116684653+JaredSnider-Bitwarden@users.noreply.github.com> Date: Sat, 15 Jun 2024 11:10:00 -0400 Subject: [PATCH] Auth/ Fix web route data configuration issues for SSO comp and Accept Emergency comp (#9671) --- apps/web/src/app/oss-routing.module.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/web/src/app/oss-routing.module.ts b/apps/web/src/app/oss-routing.module.ts index 7dafb9ab6a1..810cba453b1 100644 --- a/apps/web/src/app/oss-routing.module.ts +++ b/apps/web/src/app/oss-routing.module.ts @@ -222,14 +222,14 @@ const routes: Routes = [ { path: "sso", canActivate: [unauthGuardFn()], + data: { + pageTitle: "enterpriseSingleSignOn", + titleId: "enterpriseSingleSignOn", + } satisfies DataProperties & AnonLayoutWrapperData, children: [ { path: "", component: SsoComponent, - data: { - pageTitle: "enterpriseSingleSignOn", - titleId: "enterpriseSingleSignOn", - } satisfies DataProperties & AnonLayoutWrapperData, }, { path: "", @@ -286,14 +286,14 @@ const routes: Routes = [ { path: "accept-emergency", canActivate: [deepLinkGuard()], + data: { + pageTitle: "emergencyAccess", + titleId: "acceptEmergency", + doNotSaveUrl: false, + } satisfies DataProperties & AnonLayoutWrapperData, children: [ { path: "", - data: { - pageTitle: "emergencyAccess", - titleId: "acceptEmergency", - doNotSaveUrl: false, - } satisfies DataProperties & AnonLayoutWrapperData, loadComponent: () => import("./auth/emergency-access/accept/accept-emergency.component").then( (mod) => mod.AcceptEmergencyComponent,