5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-26 10:03:55 +03:00
proxmox-backup/www/VersionInfo.js

34 lines
527 B
JavaScript
Raw Normal View History

2018-12-04 17:58:40 +01:00
/*global Proxmox*/
Ext.define('PBS.view.main.VersionInfo',{
extend: 'Ext.Component',
xtype: 'versioninfo',
makeApiCall: true,
data: {
version: false
},
tpl: [
'Backup Server',
'<tpl if="version">',
' {version}-{release}',
'</tpl>'
],
initComponent: function() {
var me = this;
me.callParent();
if (me.makeApiCall) {
Proxmox.Utils.API2Request({
2018-12-04 17:58:40 +01:00
url: '/version',
method: 'GET',
success: function(response) {
me.update(response.result.data);
}
});
}
}
});