mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-29 19:12:26 +08:00
34 lines
813 B
JavaScript
34 lines
813 B
JavaScript
import ko from 'ko';
|
|
|
|
import Remote from 'Remote/Admin/Fetch';
|
|
|
|
import { PackageAdminStore } from 'Stores/Admin/Package';
|
|
|
|
import { AbstractViewRight } from 'Knoin/AbstractViews';
|
|
|
|
import { leftPanelDisabled, Settings } from 'Common/Globals';
|
|
|
|
class PaneSettingsAdminView extends AbstractViewRight {
|
|
constructor() {
|
|
super('Admin/Settings/Pane', 'AdminPane');
|
|
|
|
this.version = ko.observable(Settings.app('version'));
|
|
|
|
this.leftPanelDisabled = leftPanelDisabled;
|
|
|
|
this.adminManLoadingVisibility = ko
|
|
.computed(() => PackageAdminStore.loading() ? 'visible' : 'hidden');
|
|
}
|
|
|
|
toggleLeft(item, event) {
|
|
event.preventDefault();
|
|
event.stopPropagation();
|
|
leftPanelDisabled(!leftPanelDisabled());
|
|
}
|
|
|
|
logoutClick() {
|
|
Remote.adminLogout(() => rl.logoutReload());
|
|
}
|
|
}
|
|
|
|
export { PaneSettingsAdminView };
|