mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 16:58:07 +08:00
39 lines
781 B
JavaScript
39 lines
781 B
JavaScript
|
|
import $ from '$';
|
|
import key from 'key';
|
|
|
|
import {leftPanelDisabled} from 'Common/Globals';
|
|
import {KeyState} from 'Common/Enums';
|
|
|
|
import {view, ViewType, settingsMenuKeysHendler} from 'Knoin/Knoin';
|
|
import {AbstractViewNext} from 'Knoin/AbstractViewNext';
|
|
|
|
@view({
|
|
name: 'View/Admin/Settings/Menu',
|
|
type: ViewType.Left,
|
|
templateID: 'AdminMenu'
|
|
})
|
|
class MenuSettingsAdminView extends AbstractViewNext
|
|
{
|
|
/**
|
|
* @param {?} screen
|
|
*/
|
|
constructor(screen) {
|
|
|
|
super();
|
|
|
|
this.leftPanelDisabled = leftPanelDisabled;
|
|
|
|
this.menu = screen.menu;
|
|
}
|
|
|
|
link(route) {
|
|
return '#/' + route;
|
|
}
|
|
|
|
onBuild(dom) {
|
|
key('up, down', KeyState.Settings, settingsMenuKeysHendler($('.b-admin-menu .e-item', dom)));
|
|
}
|
|
}
|
|
|
|
export {MenuSettingsAdminView, MenuSettingsAdminView as default};
|