]> git.proxmox.com Git - pmg-gui.git/blob - js/VersionInfo.js
utils: add onlineHelpTool
[pmg-gui.git] / js / VersionInfo.js
1 Ext.define('PMG.view.main.VersionInfo', {
2 extend: 'Ext.Component',
3 xtype: 'versioninfo',
4
5 makeApiCall: true,
6
7 data: {
8 version: false,
9 },
10
11 tpl: [
12 'Mail Gateway',
13 '<tpl if="version">',
14 ' {version}',
15 '</tpl>',
16 ],
17
18 initComponent: function() {
19 var me = this;
20 me.callParent();
21
22 if (me.makeApiCall) {
23 Proxmox.Utils.API2Request({
24 url: '/version',
25 method: 'GET',
26 success: function(response) {
27 me.update(response.result.data);
28 },
29 });
30 }
31 },
32 });