mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-15 12:15:20 +08:00
43 lines
782 B
JavaScript
43 lines
782 B
JavaScript
|
|
||
|
(function () {
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
var
|
||
|
_ = require('_'),
|
||
|
|
||
|
Globals = require('Common/Globals'),
|
||
|
|
||
|
kn = require('Knoin/Knoin'),
|
||
|
AbstractView = require('Knoin/AbstractView')
|
||
|
;
|
||
|
|
||
|
/**
|
||
|
* @param {?} oScreen
|
||
|
*
|
||
|
* @constructor
|
||
|
* @extends AbstractView
|
||
|
*/
|
||
|
function MenuSettingsAdminView(oScreen)
|
||
|
{
|
||
|
AbstractView.call(this, 'Left', 'AdminMenu');
|
||
|
|
||
|
this.leftPanelDisabled = Globals.leftPanelDisabled;
|
||
|
|
||
|
this.menu = oScreen.menu;
|
||
|
|
||
|
kn.constructorEnd(this);
|
||
|
}
|
||
|
|
||
|
kn.extendAsViewModel(['View/Admin/Settings/Menu', 'AdminSettingsMenuViewModel'], MenuSettingsAdminView);
|
||
|
_.extend(MenuSettingsAdminView.prototype, AbstractView.prototype);
|
||
|
|
||
|
MenuSettingsAdminView.prototype.link = function (sRoute)
|
||
|
{
|
||
|
return '#/' + sRoute;
|
||
|
};
|
||
|
|
||
|
module.exports = MenuSettingsAdminView;
|
||
|
|
||
|
}());
|