OpenSlides/client/src/app/site/motions/motions.config.ts

31 lines
1.4 KiB
TypeScript
Raw Normal View History

import { AppConfig } from '../base/app-config';
import { Motion } from '../../shared/models/motions/motion';
import { Category } from '../../shared/models/motions/category';
import { Workflow } from '../../shared/models/motions/workflow';
import { MotionCommentSection } from '../../shared/models/motions/motion-comment-section';
import { MotionChangeReco } from '../../shared/models/motions/motion-change-reco';
import { MotionBlock } from '../../shared/models/motions/motion-block';
2018-10-12 12:32:19 +02:00
import { StatuteParagraph } from '../../shared/models/motions/statute-paragraph';
export const MotionsAppConfig: AppConfig = {
name: 'motions',
models: [
2018-11-07 08:43:48 +01:00
{ collectionString: 'motions/motion', model: Motion, searchOrder: 2 },
{ collectionString: 'motions/category', model: Category, searchOrder: 6 },
{ collectionString: 'motions/workflow', model: Workflow },
{ collectionString: 'motions/motion-comment-section', model: MotionCommentSection },
{ collectionString: 'motions/motion-change-recommendation', model: MotionChangeReco },
2018-11-07 08:43:48 +01:00
{ collectionString: 'motions/motion-block', model: MotionBlock, searchOrder: 7 },
{ collectionString: 'motions/statute-paragraph', model: StatuteParagraph, searchOrder: 9 }
],
mainMenuEntries: [
{
route: '/motions',
displayName: 'Motions',
icon: 'assignment',
weight: 300,
permission: 'motions.can_see'
}
]
};