fix links dashboards

This commit is contained in:
Mariela Bonilla 2021-08-09 19:26:35 -06:00
parent 5542c12c82
commit 8812eea915
3 changed files with 5 additions and 16 deletions

View File

@ -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 {

View File

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

View File

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