mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 00:38:04 +08:00
29 lines
674 B
JavaScript
29 lines
674 B
JavaScript
import { leftPanelDisabled } from 'Common/Globals';
|
|
import { KeyState } from 'Common/Enums';
|
|
|
|
import { settingsMenuKeysHandler } from 'Knoin/Knoin';
|
|
import { AbstractViewLeft } from 'Knoin/AbstractViews';
|
|
|
|
class MenuSettingsAdminView extends AbstractViewLeft {
|
|
/**
|
|
* @param {?} screen
|
|
*/
|
|
constructor(screen) {
|
|
super('Admin/Settings/Menu', 'AdminMenu');
|
|
|
|
this.leftPanelDisabled = leftPanelDisabled;
|
|
|
|
this.menu = screen.menu;
|
|
}
|
|
|
|
link(route) {
|
|
return '#/' + route;
|
|
}
|
|
|
|
onBuild(dom) {
|
|
shortcuts.add('arrowup,arrowdown', '', KeyState.Settings,
|
|
settingsMenuKeysHandler(dom.querySelectorAll('.b-admin-menu .e-item')));
|
|
}
|
|
}
|
|
|
|
export { MenuSettingsAdminView };
|