mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-04 14:02:17 +08:00
46 lines
No EOL
1 KiB
JavaScript
46 lines
No EOL
1 KiB
JavaScript
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
_ = require('_'),
|
|
ko = require('ko'),
|
|
|
|
Settings = require('Storage/Settings'),
|
|
Data = require('Storage/Admin/Data'),
|
|
Remote = require('Storage/Admin/Remote'),
|
|
|
|
kn = require('Knoin/Knoin'),
|
|
AbstractView = require('Knoin/AbstractView')
|
|
;
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends AbstractView
|
|
*/
|
|
function PaneSettingsAdminView()
|
|
{
|
|
AbstractView.call(this, 'Right', 'AdminPane');
|
|
|
|
this.adminDomain = ko.observable(Settings.settingsGet('AdminDomain'));
|
|
this.version = ko.observable(Settings.settingsGet('Version'));
|
|
|
|
this.adminManLoadingVisibility = Data.adminManLoadingVisibility;
|
|
|
|
kn.constructorEnd(this);
|
|
}
|
|
|
|
kn.extendAsViewModel(['View/Admin/Settings/Pane', 'AdminSettingsPaneViewModel'], PaneSettingsAdminView);
|
|
_.extend(PaneSettingsAdminView.prototype, AbstractView.prototype);
|
|
|
|
PaneSettingsAdminView.prototype.logoutClick = function ()
|
|
{
|
|
Remote.adminLogout(function () {
|
|
require('App/Admin').loginAndLogoutReload(true);
|
|
});
|
|
};
|
|
|
|
module.exports = PaneSettingsAdminView;
|
|
|
|
}()); |