fca4154bb5
Adds a lookup object for a more solid approach to handling permissions. Permissions are now an actual type rather than just a string.
20 lines
495 B
TypeScript
20 lines
495 B
TypeScript
import { AppConfig } from '../../core/definitions/app-config';
|
|
import { Permission } from 'app/core/core-services/operator.service';
|
|
|
|
/**
|
|
* Config object for history.
|
|
* Hooks into the navigation.
|
|
*/
|
|
export const HistoryAppConfig: AppConfig = {
|
|
name: 'history',
|
|
mainMenuEntries: [
|
|
{
|
|
route: '/history',
|
|
displayName: 'History',
|
|
icon: 'history',
|
|
weight: 1200,
|
|
permission: Permission.coreCanSeeHistory
|
|
}
|
|
]
|
|
};
|