mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Show if optional PHP extensions are loaded on Admin -> About page
This commit is contained in:
parent
6c0b5ab33b
commit
d534d2700a
4 changed files with 38 additions and 1 deletions
|
|
@ -203,6 +203,12 @@ class RemoteAdminFetch extends AbstractFetchRemote {
|
|||
this.defaultRequest(fCallback, 'AdminPasswordUpdate', oData);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {?Function} fCallback
|
||||
*/
|
||||
phpExtensions(fCallback) {
|
||||
this.defaultRequest(fCallback, 'AdminPHPExtensions');
|
||||
}
|
||||
}
|
||||
|
||||
export default new RemoteAdminFetch();
|
||||
|
|
|
|||
|
|
@ -1,8 +1,15 @@
|
|||
import ko from 'ko';
|
||||
import { Settings } from 'Common/Globals';
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
||||
export class AboutAdminSettings /*extends AbstractViewSettings*/ {
|
||||
constructor() {
|
||||
this.version = ko.observable(Settings.app('version'));
|
||||
this.phpextensions = ko.observableArray();
|
||||
}
|
||||
|
||||
onBuild() {
|
||||
Remote.phpExtensions((iError, data) => iError || this.phpextensions(data.Result));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue