1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 12:13:45 +00:00

feat(change-password-component): Change Password Update [18720] - Removed duplicated anon layouts.

This commit is contained in:
Patrick Pimentel
2025-05-27 12:26:40 -04:00
parent 0be93fa65f
commit 356da9885a
2 changed files with 22 additions and 34 deletions

View File

@@ -330,21 +330,6 @@ const routes: Routes = [
canActivate: [authGuard],
data: { elevation: 1 } satisfies RouteDataProperties,
},
{
path: "",
component: ExtensionAnonLayoutWrapperComponent,
children: [
{
path: "change-password",
children: [
{
path: "",
component: ChangePasswordComponent,
},
],
},
],
},
{
path: "update-temp-password",
component: UpdateTempPasswordComponent,
@@ -571,6 +556,16 @@ const routes: Routes = [
showBackButton: true,
} satisfies RouteDataProperties & ExtensionAnonLayoutWrapperData,
},
// TODO: Should this have any guards?
{
path: "change-password",
children: [
{
path: "",
component: ChangePasswordComponent,
},
],
},
],
},
{

View File

@@ -142,25 +142,6 @@ const routes: Routes = [
canActivate: [unauthGuardFn()],
data: { titleId: "deleteOrganization" },
},
{
path: "",
component: AnonLayoutWrapperComponent,
children: [
{
path: "change-password",
children: [
{
path: "",
component: ChangePasswordComponent,
},
],
data: {
hideFooter: true,
} satisfies AnonLayoutWrapperData,
},
],
data: { titleId: "updatePassword" } satisfies RouteDataProperties,
},
{
path: "update-temp-password",
component: UpdateTempPasswordComponent,
@@ -617,6 +598,18 @@ const routes: Routes = [
},
],
},
{
path: "change-password",
data: {
hideFooter: true,
} satisfies AnonLayoutWrapperData,
children: [
{
path: "",
component: ChangePasswordComponent,
},
],
},
],
},
{