]> git.proxmox.com Git - proxmox-backup.git/blobdiff - www/VersionInfo.js
tools/logrotate: fix compression logic
[proxmox-backup.git] / www / VersionInfo.js
index a0298d335cc230d05774a7b482f174b0f3bf936c..9929d086229aa3ff12f1def592a98e16f79bb695 100644 (file)
@@ -1,19 +1,18 @@
-/*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() {
@@ -21,13 +20,13 @@ Ext.define('PBS.view.main.VersionInfo',{
        me.callParent();
 
        if (me.makeApiCall) {
-           PBS.Utils.API3Request({
+           Proxmox.Utils.API2Request({
                url: '/version',
                method: 'GET',
                success: function(response) {
                    me.update(response.result.data);
-               }
+               },
            });
        }
-    }
+    },
 });