pmg-gui/js/VersionInfo.js
Thomas Lamprecht a36756b058 drop jslint hint for Proxmox global
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 14:03:17 +02:00

33 lines
502 B
JavaScript

Ext.define('PMG.view.main.VersionInfo', {
extend: 'Ext.Component',
xtype: 'versioninfo',
makeApiCall: true,
data: {
version: false,
},
tpl: [
'Mail Gateway',
'<tpl if="version">',
' {version}',
'</tpl>',
],
initComponent: function() {
var me = this;
me.callParent();
if (me.makeApiCall) {
Proxmox.Utils.API2Request({
url: '/version',
method: 'GET',
success: function(response) {
me.update(response.result.data);
},
});
}
},
});