pmg-gui/js/VersionInfo.js
Thomas Lamprecht 4da158ce09 adapt to new pmgcfg version/release semantic
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-25 18:56:38 +02:00

34 lines
516 B
JavaScript

/*global Proxmox*/
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);
}
});
}
}
});