From 8812eea915547b7c5771a3506237e082ed8a112e Mon Sep 17 00:00:00 2001 From: Mariela Bonilla Date: Mon, 9 Aug 2021 19:26:35 -0600 Subject: [PATCH] fix links dashboards --- src/main/webapp/app/app.module.ts | 13 +------------ .../app/entities/dashboard/dashboard.module.ts | 4 ++-- .../webapp/app/entities/entity-routing.module.ts | 4 ++-- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/src/main/webapp/app/app.module.ts b/src/main/webapp/app/app.module.ts index 06dcee2..7c6db5a 100644 --- a/src/main/webapp/app/app.module.ts +++ b/src/main/webapp/app/app.module.ts @@ -33,8 +33,6 @@ import { PageRibbonComponent } from './layouts/profiles/page-ribbon.component'; import { ErrorComponent } from './layouts/error/error.component'; import { SidebarComponent } from './layouts/sidebar/sidebar.component'; import { PaginaPrincipalComponent } from './pagina-principal/pagina-principal.component'; -import { DashboardUserComponent } from './entities/dashboard/dashboard-user/dashboard-user.component'; -import { DashboardAdminComponent } from './entities/dashboard/dashboard-admin/dashboard-admin.component'; @NgModule({ imports: [ @@ -81,16 +79,7 @@ import { DashboardAdminComponent } from './entities/dashboard/dashboard-admin/da } as SocialAuthServiceConfig, }, ], - declarations: [ - MainComponent, - NavbarComponent, - ErrorComponent, - PageRibbonComponent, - FooterComponent, - SidebarComponent, - DashboardUserComponent, - DashboardAdminComponent, - ], + declarations: [MainComponent, NavbarComponent, ErrorComponent, PageRibbonComponent, FooterComponent, SidebarComponent], bootstrap: [MainComponent], }) export class AppModule { diff --git a/src/main/webapp/app/entities/dashboard/dashboard.module.ts b/src/main/webapp/app/entities/dashboard/dashboard.module.ts index 11b9687..c172c5c 100644 --- a/src/main/webapp/app/entities/dashboard/dashboard.module.ts +++ b/src/main/webapp/app/entities/dashboard/dashboard.module.ts @@ -4,11 +4,11 @@ import { CommonModule } from '@angular/common'; import { DashboardUserComponent } from './dashboard-user/dashboard-user.component'; import { DashboardAdminComponent } from './dashboard-admin/dashboard-admin.component'; import { SharedModule } from '../../shared/shared.module'; -import { PlantillaRoutingModule } from '../plantilla/route/plantilla-routing.module'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; +import { DashboardRoutingModule } from './route/dashboard-routing.module'; @NgModule({ declarations: [DashboardUserComponent, DashboardAdminComponent], - imports: [CommonModule, SharedModule, PlantillaRoutingModule, FontAwesomeModule], + imports: [CommonModule, SharedModule, DashboardRoutingModule, FontAwesomeModule], }) export class DashboardModule {} diff --git a/src/main/webapp/app/entities/entity-routing.module.ts b/src/main/webapp/app/entities/entity-routing.module.ts index dbe3bd0..47e08ea 100644 --- a/src/main/webapp/app/entities/entity-routing.module.ts +++ b/src/main/webapp/app/entities/entity-routing.module.ts @@ -83,12 +83,12 @@ import { RouterModule } from '@angular/router'; loadChildren: () => import('./usuario-plantillas/usuario-plantillas.module').then(m => m.UsuarioPlantillasModule), }, { - path: 'dashboard/admin', + path: 'dashboard', data: { pageTitle: 'dataSurveyApp.Dashboard.title' }, loadChildren: () => import('./dashboard/dashboard.module').then(m => m.DashboardModule), }, { - path: 'dashboard/user', + path: 'dashboard', data: { pageTitle: 'dataSurveyApp.Dashboard.title' }, loadChildren: () => import('./dashboard/dashboard.module').then(m => m.DashboardModule), },