Refactor: Moved various Schemas into their files
Feature: Complex voucher locking where specific types of vouchers and accounts can be locked and the locks can also be times to expire after some time. Highest index takes priority
This commit is contained in:
@ -2,11 +2,13 @@ import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
import { AccountTypeResolver } from '../account/account-type-resolver.service';
|
||||
import { AuthGuard } from '../auth/auth-guard.service';
|
||||
|
||||
import { LockInformationResolver } from './lock-information-resolver.service';
|
||||
import { MaintenanceResolver } from './maintenance-resolver.service';
|
||||
import { SettingsComponent } from './settings.component';
|
||||
import { VoucherTypeResolver } from './voucher-type-resolver.service';
|
||||
|
||||
const settingsRoutes: Routes = [
|
||||
{
|
||||
@ -19,6 +21,8 @@ const settingsRoutes: Routes = [
|
||||
resolve: {
|
||||
maintenance: MaintenanceResolver,
|
||||
lockInformation: LockInformationResolver,
|
||||
accountTypes: AccountTypeResolver,
|
||||
voucherTypes: VoucherTypeResolver,
|
||||
},
|
||||
runGuardsAndResolvers: 'always',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user