2018-09-18 15:51:57 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
2019-07-26 11:46:59 +02:00
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
2019-05-27 18:38:43 +02:00
|
|
|
import { WatchForChangesGuard } from 'app/shared/utils/watch-for-changes.guard';
|
2018-09-18 15:51:57 +02:00
|
|
|
import { ConfigListComponent } from './components/config-list/config-list.component';
|
2019-05-27 18:38:43 +02:00
|
|
|
import { ConfigOverviewComponent } from './components/config-overview/config-overview.component';
|
2018-09-18 15:51:57 +02:00
|
|
|
|
2019-05-27 18:38:43 +02:00
|
|
|
const routes: Routes = [
|
|
|
|
{ path: '', component: ConfigOverviewComponent, pathMatch: 'full' },
|
|
|
|
{ path: ':group', component: ConfigListComponent, canDeactivate: [WatchForChangesGuard] }
|
|
|
|
];
|
2018-09-18 15:51:57 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class ConfigRoutingModule {}
|