mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Bugfix: Admin extensions page didn't refresh after install/update
This commit is contained in:
parent
eeb289ea44
commit
2e8497dc01
6 changed files with 12 additions and 24 deletions
|
|
@ -1,28 +1,16 @@
|
|||
import ko from 'ko';
|
||||
import { koComputable } from 'External/ko';
|
||||
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
||||
import { PackageAdminStore } from 'Stores/Admin/Package';
|
||||
|
||||
import { AbstractViewRight } from 'Knoin/AbstractViews';
|
||||
|
||||
import { leftPanelDisabled, Settings } from 'Common/Globals';
|
||||
import { leftPanelDisabled } from 'Common/Globals';
|
||||
|
||||
class PaneSettingsAdminView extends AbstractViewRight {
|
||||
export class PaneSettingsAdminView extends AbstractViewRight {
|
||||
constructor() {
|
||||
super('AdminPane');
|
||||
|
||||
this.version = ko.observable(Settings.app('version'));
|
||||
|
||||
this.leftPanelDisabled = leftPanelDisabled;
|
||||
|
||||
this.adminManLoadingVisibility = koComputable(() => PackageAdminStore.loading() ? 'visible' : 'hidden');
|
||||
}
|
||||
|
||||
logoutClick() {
|
||||
Remote.request('AdminLogout', () => rl.logoutReload());
|
||||
}
|
||||
}
|
||||
|
||||
export { PaneSettingsAdminView };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue