mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
41 lines
713 B
TypeScript
41 lines
713 B
TypeScript
import { MenusState } from './menu.reducer';
|
|
|
|
/**
|
|
* Availavle Menu IDs
|
|
*/
|
|
export enum MenuID {
|
|
ADMIN = 'admin-sidebar',
|
|
PUBLIC = 'public'
|
|
}
|
|
|
|
/**
|
|
* List of possible MenuItemTypes
|
|
*/
|
|
export enum MenuItemType {
|
|
TEXT, LINK, ALTMETRIC, SEARCH
|
|
}
|
|
|
|
/**
|
|
* The initial state of the menus
|
|
*/
|
|
export const initialMenusState: MenusState = {
|
|
[MenuID.ADMIN]:
|
|
{
|
|
id: MenuID.ADMIN,
|
|
collapsed: true,
|
|
previewCollapsed: true,
|
|
visible: false,
|
|
sections: {},
|
|
sectionToSubsectionIndex: {}
|
|
},
|
|
[MenuID.PUBLIC]:
|
|
{
|
|
id: MenuID.PUBLIC,
|
|
collapsed: true,
|
|
previewCollapsed: true,
|
|
visible: true,
|
|
sections: {},
|
|
sectionToSubsectionIndex: {}
|
|
}
|
|
};
|