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[] = [ export const IAN_LAZY_ROUTES:Ng2StateDeclaration[] = [
{ {
name: 'notifications.**', name: 'notifications.**',
parent: 'root',
url: '/notifications', url: '/notifications',
loadChildren: () => import('./in-app-notifications.module').then((m) => m.OpenProjectInAppNotificationsModule), 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[] = [ export const IAN_ROUTES:Ng2StateDeclaration[] = [
{ {
name: 'notifications', name: 'notifications',
parent: 'root',
url: '/notifications', url: '/notifications',
component: InAppNotificationCenterComponent, component: InAppNotificationCenterComponent,
}, },

@ -30,14 +30,12 @@ import { Ng2StateDeclaration } from '@uirouter/angular';
export const MY_ACCOUNT_LAZY_ROUTES:Ng2StateDeclaration[] = [ export const MY_ACCOUNT_LAZY_ROUTES:Ng2StateDeclaration[] = [
{ {
name: 'my_notification.**', name: 'my_notifications.**',
parent: 'root',
url: '/my/notifications', url: '/my/notifications',
loadChildren: () => import('./user-preferences.module').then((m) => m.OpenProjectMyAccountModule), loadChildren: () => import('./user-preferences.module').then((m) => m.OpenProjectMyAccountModule),
}, },
{ {
name: 'user_notifications.**', name: 'user_notifications.**',
parent: 'root',
url: '/users/:userId/edit/notifications', url: '/users/:userId/edit/notifications',
loadChildren: () => import('./user-preferences.module').then((m) => m.OpenProjectMyAccountModule), 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[] = [ export const MY_ACCOUNT_ROUTES:Ng2StateDeclaration[] = [
{ {
name: 'my_notifications', name: 'my_notifications',
parent: 'root',
url: '/my/notifications', url: '/my/notifications',
component: NotificationsSettingsPageComponent, component: NotificationsSettingsPageComponent,
}, },
{ {
name: 'user_notifications', name: 'user_notifications',
parent: 'root',
url: '/users/:userId/edit/notifications', url: '/users/:userId/edit/notifications',
component: NotificationsSettingsPageComponent, component: NotificationsSettingsPageComponent,
}, },

Loading…
Cancel
Save