snappymail/dev/Settings/Admin/About.js

16 lines
416 B
JavaScript
Raw Normal View History

2016-07-16 05:29:42 +08:00
import ko from 'ko';
2021-03-10 18:44:48 +08:00
import { Settings } from 'Common/Globals';
import Remote from 'Remote/Admin/Fetch';
2016-06-30 08:02:45 +08:00
export class AboutAdminSettings /*extends AbstractViewSettings*/ {
2016-07-16 05:29:42 +08:00
constructor() {
2021-03-10 18:44:48 +08:00
this.version = ko.observable(Settings.app('version'));
this.phpextensions = ko.observableArray();
2016-06-30 08:02:45 +08:00
}
onBuild() {
Remote.request('AdminPHPExtensions', (iError, data) => iError || this.phpextensions(data.Result));
}
2016-07-16 05:29:42 +08:00
}