2e0353618d
Fixed leftovers from the viewModel restructure. Repositories always have a verboseName now. Does not implement new logic to follow related models (e.g. motions->submitters).
27 lines
902 B
TypeScript
27 lines
902 B
TypeScript
import { AppConfig } from '../../core/app-config';
|
|
import { Assignment } from '../../shared/models/assignments/assignment';
|
|
import { AssignmentRepositoryService } from 'app/core/repositories/assignments/assignment-repository.service';
|
|
import { ViewAssignment } from './models/view-assignment';
|
|
|
|
export const AssignmentsAppConfig: AppConfig = {
|
|
name: 'assignments',
|
|
models: [
|
|
{
|
|
collectionString: 'assignments/assignment',
|
|
model: Assignment,
|
|
viewModel: ViewAssignment,
|
|
// searchOrder: 3, // TODO: enable, if there is a detail page and so on.
|
|
repository: AssignmentRepositoryService
|
|
}
|
|
],
|
|
mainMenuEntries: [
|
|
{
|
|
route: '/assignments',
|
|
displayName: 'Elections',
|
|
icon: 'how_to_vote',
|
|
weight: 400,
|
|
permission: 'assignments.can_see'
|
|
}
|
|
]
|
|
};
|