Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix lazy routes

Oliver Günther105d8a43af29
diff --git a/frontend/src/app/features/in-app-notifications/in-app-notifications.lazy-routes.ts b/frontend/src/app/features/in-app-notifications/in-app-notifications.lazy-routes.ts
index d792b0f183f..b112e1d1ae2 100644
--- a/frontend/src/app/features/in-app-notifications/in-app-notifications.lazy-routes.ts
+++ b/frontend/src/app/features/in-app-notifications/in-app-notifications.lazy-routes.ts
@@ -31,7 +31,6 @@ import { Ng2StateDeclaration } from '@uirouter/angular';
export const IAN_LAZY_ROUTES:Ng2StateDeclaration[] = [
{
name: 'notifications.**',
- parent: 'root',
url: '/notifications',
loadChildren: () => import('./in-app-notifications.module').then((m) => m.OpenProjectInAppNotificationsModule),
},
diff --git a/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts b/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts
index d23ce58ca69..2068ce7c66f 100644
--- a/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts
+++ b/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts
@@ -32,7 +32,6 @@ import { InAppNotificationCenterComponent } from 'core-app/features/in-app-notif
export const IAN_ROUTES:Ng2StateDeclaration[] = [
{
name: 'notifications',
- parent: 'root',
url: '/notifications',
component: InAppNotificationCenterComponent,
},
diff --git a/frontend/src/app/features/user-preferences/user-preferences.lazy-routes.ts b/frontend/src/app/features/user-preferences/user-preferences.lazy-routes.ts
index b99f150ed66..c5c41633822 100644
--- a/frontend/src/app/features/user-preferences/user-preferences.lazy-routes.ts
+++ b/frontend/src/app/features/user-preferences/user-preferences.lazy-routes.ts
@@ -30,14 +30,12 @@ import { Ng2StateDeclaration } from '@uirouter/angular';
export const MY_ACCOUNT_LAZY_ROUTES:Ng2StateDeclaration[] = [
{
- name: 'my_notification.**',
- parent: 'root',
+ name: 'my_notifications.**',
url: '/my/notifications',
loadChildren: () => import('./user-preferences.module').then((m) => m.OpenProjectMyAccountModule),
},
{
name: 'user_notifications.**',
- parent: 'root',
url: '/users/:userId/edit/notifications',
loadChildren: () => import('./user-preferences.module').then((m) => m.OpenProjectMyAccountModule),
},
diff --git a/frontend/src/app/features/user-preferences/user-preferences.routes.ts b/frontend/src/app/features/user-preferences/user-preferences.routes.ts
index eea56082577..19cd25e5776 100644
--- a/frontend/src/app/features/user-preferences/user-preferences.routes.ts
+++ b/frontend/src/app/features/user-preferences/user-preferences.routes.ts
@@ -32,13 +32,11 @@ import { NotificationsSettingsPageComponent } from 'core-app/features/user-prefe
export const MY_ACCOUNT_ROUTES:Ng2StateDeclaration[] = [
{
name: 'my_notifications',
- parent: 'root',
url: '/my/notifications',
component: NotificationsSettingsPageComponent,
},
{
name: 'user_notifications',
- parent: 'root',
url: '/users/:userId/edit/notifications',
component: NotificationsSettingsPageComponent,
},