Fix lazy routes

pull/9556/head
Oliver Günther 3 years ago
parent 8fb312cfb8
commit 105d8a43af
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 1
      frontend/src/app/features/in-app-notifications/in-app-notifications.lazy-routes.ts
  2. 1
      frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts
  3. 4
      frontend/src/app/features/user-preferences/user-preferences.lazy-routes.ts
  4. 2
      frontend/src/app/features/user-preferences/user-preferences.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),
},

@ -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,
},

@ -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),
},

@ -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,
},

Loading…
Cancel
Save