6be1dd5a3a
---- Pending * Table width for the points column in incentive * Linting * keyboard navigation where it was used earlier * can remove the unused totals calculated serverside in productledger * spinner and loading bars * Activate Guard for Employee Function tabs * Progress for Fingerprint uploads * deleted reconcile and receipe features as they were not being used * focus the right control on component load
67 lines
1.5 KiB
TypeScript
67 lines
1.5 KiB
TypeScript
import {NgModule} from '@angular/core';
|
|
import {CommonModule} from '@angular/common';
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
|
|
import {EmployeeListResolver} from './employee-list-resolver.service';
|
|
import {EmployeeResolver} from './employee-resolver.service';
|
|
import {EmployeeDetailComponent} from './employee-detail/employee-detail.component';
|
|
import {EmployeeListComponent} from './employee-list/employee-list.component';
|
|
|
|
import {AuthGuard} from '../auth/auth-guard.service';
|
|
import {CostCentreListResolver} from '../cost-centre/cost-centre-list-resolver.service';
|
|
|
|
const employeeRoutes: Routes = [
|
|
{
|
|
path: 'Employees',
|
|
component: EmployeeListComponent,
|
|
canActivate: [AuthGuard],
|
|
data: {
|
|
permission: 'Employees'
|
|
},
|
|
resolve: {
|
|
list: EmployeeListResolver
|
|
}
|
|
},
|
|
{
|
|
path: 'Employee',
|
|
component: EmployeeDetailComponent,
|
|
canActivate: [AuthGuard],
|
|
data: {
|
|
permission: 'Employees'
|
|
},
|
|
resolve: {
|
|
item: EmployeeResolver,
|
|
costCentres: CostCentreListResolver
|
|
}
|
|
},
|
|
{
|
|
path: 'Employee/:id',
|
|
component: EmployeeDetailComponent,
|
|
canActivate: [AuthGuard],
|
|
data: {
|
|
permission: 'Employees'
|
|
},
|
|
resolve: {
|
|
item: EmployeeResolver,
|
|
costCentres: CostCentreListResolver
|
|
}
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
RouterModule.forChild(employeeRoutes)
|
|
|
|
],
|
|
exports: [
|
|
RouterModule
|
|
],
|
|
providers: [
|
|
EmployeeListResolver,
|
|
EmployeeResolver
|
|
]
|
|
})
|
|
export class EmployeeRoutingModule {
|
|
}
|