From b0157e9d55d26f38962b4b1dbaffa3de30f97e18 Mon Sep 17 00:00:00 2001 From: Cantte Date: Fri, 5 Mar 2021 10:15:25 -0500 Subject: [PATCH] feat(front-end): Add route for EmployeeCharges component --- Kaizen/ClientApp/src/app/global/control-panel-cards.ts | 3 ++- .../src/app/modules/employees/employees-routing.module.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Kaizen/ClientApp/src/app/global/control-panel-cards.ts b/Kaizen/ClientApp/src/app/global/control-panel-cards.ts index cae51afa..a7800c93 100644 --- a/Kaizen/ClientApp/src/app/global/control-panel-cards.ts +++ b/Kaizen/ClientApp/src/app/global/control-panel-cards.ts @@ -59,7 +59,8 @@ export const DASHBOARDS_CARDS: { [role: string]: DashboardCard[] } = { isMenu: true, subMenu: [ { title: 'Registrar empleado', url: '/employees/register', iconName: 'person_add' }, - { title: 'Ver empleados', url: '/employees', iconName: 'people' } + { title: 'Ver empleados', url: '/employees', iconName: 'people' }, + { title: 'Ver cargos de empleado', url: '/employees/charges', iconName: 'list' } ] }, { diff --git a/Kaizen/ClientApp/src/app/modules/employees/employees-routing.module.ts b/Kaizen/ClientApp/src/app/modules/employees/employees-routing.module.ts index 66d34cfe..84cc3406 100644 --- a/Kaizen/ClientApp/src/app/modules/employees/employees-routing.module.ts +++ b/Kaizen/ClientApp/src/app/modules/employees/employees-routing.module.ts @@ -3,6 +3,7 @@ import { RouterModule, Routes } from '@angular/router'; import { AdminGuard } from '@core/guards/admin.guard'; import { AuthGuard } from '@core/guards/auth.guard'; import { DashboardLayoutComponent } from '@shared/layouts/dashboard-layout/dashboard-layout.component'; +import { EmployeeChargesComponent } from './components/employee-charges/employee-charges.component'; import { EmployeeDetailComponent } from './components/employee-detail/employee-detail.component'; import { EmployeeEditComponent } from './components/employee-edit/employee-edit.component'; import { EmployeeMapComponent } from './components/employee-map/employee-map.component'; @@ -23,6 +24,10 @@ const routes: Routes = [ path: 'map', component: EmployeeMapComponent }, + { + path: 'charges', + component: EmployeeChargesComponent + }, { path: 'register', component: EmployeeRegisterComponent