2018-07-23 16:42:17 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
2018-12-04 19:31:24 +01:00
|
|
|
|
2018-08-09 16:03:24 +02:00
|
|
|
const routes: Routes = [
|
2019-03-08 10:43:54 +01:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
loadChildren: './modules/motion-list/motion-list.module#MotionListModule',
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'import',
|
2019-04-05 12:33:34 +02:00
|
|
|
loadChildren: './modules/motion-import/motion-import.module#MotionImportModule',
|
|
|
|
data: { basePerm: 'motions.can_manage' }
|
2019-03-08 10:43:54 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'statute-paragraphs',
|
2019-04-05 12:33:34 +02:00
|
|
|
loadChildren: './modules/statute-paragraph/statute-paragraph.module#StatuteParagraphModule',
|
|
|
|
data: { basePerm: 'motions.can_manage' }
|
2019-03-08 10:43:54 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'comment-section',
|
2019-04-05 12:33:34 +02:00
|
|
|
loadChildren: './modules/motion-comment-section/motion-comment-section.module#MotionCommentSectionModule',
|
|
|
|
data: { basePerm: 'motions.can_manage' }
|
2019-03-08 10:43:54 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'call-list',
|
2019-04-05 12:33:34 +02:00
|
|
|
loadChildren: './modules/call-list/call-list.module#CallListModule',
|
|
|
|
data: { basePerm: 'motions.can_manage' }
|
2019-03-08 10:43:54 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'category',
|
2019-04-05 12:33:34 +02:00
|
|
|
loadChildren: './modules/category/category.module#CategoryModule',
|
|
|
|
data: { basePerm: 'motions.can_see' }
|
2019-03-08 10:43:54 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'blocks',
|
2019-04-05 12:33:34 +02:00
|
|
|
loadChildren: './modules/motion-block/motion-block.module#MotionBlockModule',
|
2019-05-07 13:27:42 +02:00
|
|
|
data: { basePerm: 'motions.can_see' }
|
2019-03-08 10:43:54 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'workflow',
|
2019-04-05 12:33:34 +02:00
|
|
|
loadChildren: './modules/motion-workflow/motion-workflow.module#MotionWorkflowModule',
|
|
|
|
data: { basePerm: 'motions.can_manage' }
|
2019-03-08 10:43:54 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'new',
|
2019-04-05 12:33:34 +02:00
|
|
|
loadChildren: './modules/motion-detail/motion-detail.module#MotionDetailModule',
|
|
|
|
data: { basePerm: 'motions.can_create' }
|
2019-03-08 10:43:54 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':id',
|
2019-03-13 15:16:06 +01:00
|
|
|
loadChildren: './modules/motion-detail/motion-detail.module#MotionDetailModule',
|
2019-04-05 12:33:34 +02:00
|
|
|
runGuardsAndResolvers: 'paramsChange',
|
|
|
|
data: { basePerm: 'motions.can_see' }
|
2019-03-08 10:43:54 +01:00
|
|
|
}
|
2018-08-09 16:03:24 +02:00
|
|
|
];
|
2018-07-23 16:42:17 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class MotionsRoutingModule {}
|