2019-01-31 13:40:27 +01:00
|
|
|
import { AppConfig } from '../../core/app-config';
|
2018-11-09 13:44:39 +01:00
|
|
|
import { History } from 'app/shared/models/core/history';
|
2019-01-31 13:40:27 +01:00
|
|
|
import { HistoryRepositoryService } from 'app/core/repositories/history/history-repository.service';
|
2019-02-01 13:56:08 +01:00
|
|
|
import { ViewHistory } from './models/view-history';
|
2018-11-09 13:44:39 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Config object for history.
|
|
|
|
* Hooks into the navigation.
|
|
|
|
*/
|
|
|
|
export const HistoryAppConfig: AppConfig = {
|
|
|
|
name: 'history',
|
2019-02-01 13:56:08 +01:00
|
|
|
models: [
|
|
|
|
{
|
|
|
|
collectionString: 'core/history',
|
|
|
|
model: History,
|
|
|
|
viewModel: ViewHistory,
|
|
|
|
repository: HistoryRepositoryService
|
|
|
|
}
|
|
|
|
],
|
2018-11-09 13:44:39 +01:00
|
|
|
mainMenuEntries: [
|
|
|
|
{
|
|
|
|
route: '/history',
|
|
|
|
displayName: 'History',
|
|
|
|
icon: 'history',
|
|
|
|
weight: 1200,
|
|
|
|
permission: 'core.view_history'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|