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