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

30 lines
1.1 KiB
TypeScript
Raw Normal View History

2019-08-05 15:00:21 +02:00
import { AppConfig } from '../../core/definitions/app-config';
import { ItemRepositoryService } from 'app/core/repositories/agenda/item-repository.service';
import { ListOfSpeakersRepositoryService } from 'app/core/repositories/agenda/list-of-speakers-repository.service';
import { ListOfSpeakers } from 'app/shared/models/agenda/list-of-speakers';
import { Item } from '../../shared/models/agenda/item';
import { ViewItem } from './models/view-item';
import { ViewListOfSpeakers } from './models/view-list-of-speakers';
export const AgendaAppConfig: AppConfig = {
name: 'agenda',
2019-01-10 12:54:48 +01:00
models: [
{ collectionString: 'agenda/item', model: Item, viewModel: ViewItem, repository: ItemRepositoryService },
{
collectionString: 'agenda/list-of-speakers',
model: ListOfSpeakers,
viewModel: ViewListOfSpeakers,
repository: ListOfSpeakersRepositoryService
}
2019-01-10 12:54:48 +01:00
],
mainMenuEntries: [
{
route: '/agenda',
displayName: 'Agenda',
icon: 'today', // 'calendar_today' aligns wrong!
weight: 200,
permission: 'agenda.can_see'
}
]
};