]> git.proxmox.com Git - pve-manager.git/commitdiff
use API2Request from Proxmox.Utils in mobile interface
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 26 Jan 2018 07:52:55 +0000 (08:52 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Fri, 26 Jan 2018 09:03:05 +0000 (10:03 +0100)
this was missing from the migration to the widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/mobile/Datacenter.js
www/mobile/Login.js
www/mobile/Migrate.js
www/mobile/NodeSummary.js
www/mobile/TaskViewer.js
www/mobile/VMSummaryBase.js

index 7c27b5d863dee62e76bdd452fbdc6882f3a24e38..f113a589fc56086e94e035ddac1df8d0bdb3858d 100644 (file)
@@ -74,7 +74,7 @@ Ext.define('PVE.Datacenter', {
 
        me.summary = {};
 
-       PVE.Utils.API2Request({
+       Proxmox.Utils.API2Request({
            url: '/version',
            method: 'GET',
            success: function(response) {
@@ -86,7 +86,7 @@ Ext.define('PVE.Datacenter', {
 
        var list = me.down('list');
 
-       PVE.Utils.API2Request({
+       Proxmox.Utils.API2Request({
            url: '/cluster/status',
            method: 'GET',
            success: function(response) {
index 30847c8c235482a13b8ae13d927b9fa38e788863..682d3578309289b986c3fe100ef6a1b68dcb23d7 100644 (file)
@@ -90,7 +90,7 @@ Ext.define('PVE.Login', {
                    var realm = realmField.getValue();
                    var otp = otpField.getValue();
 
-                   PVE.Utils.API2Request({
+                   Proxmox.Utils.API2Request({
                        url: '/access/ticket',
                        method: 'POST',
                        waitMsgTarget: form,
index f0b7995c01553dd503a845f98c92ce5200ee6662..0313b506cdf43e875f45e12f8962cb8010e52e77 100644 (file)
@@ -58,7 +58,7 @@ Ext.define('PVE.MigrateBase', {
                return;
            }
 
-           PVE.Utils.API2Request({
+           Proxmox.Utils.API2Request({
                params: { target: values.target, online: values.online ? 1 : 0 },
                url: '/nodes/' + me.nodename + '/' + me.vmtype + '/' + me.vmid + "/migrate",
                method: 'POST',
index 4059217bc39beab99dc7096937e1c5c7fdde6c4b..8f93c45a066da52ce2adc332e2038791293ca653 100644 (file)
@@ -103,7 +103,7 @@ Ext.define('PVE.NodeSummary', {
 
        var ni = me.down('pveNodeInfo');
 
-       PVE.Utils.API2Request({
+       Proxmox.Utils.API2Request({
            url: '/nodes/' + me.nodename + '/status',
            method: 'GET',
            success: function(response) {
@@ -124,7 +124,7 @@ Ext.define('PVE.NodeSummary', {
            list.setMasked({ xtype: 'loadmask', message: response.htmlStatus} );
        };
 
-       PVE.Utils.API2Request({
+       Proxmox.Utils.API2Request({
            url: '/nodes/' + me.nodename + '/lxc',
            method: 'GET',
            success: function(response) {
@@ -141,7 +141,7 @@ Ext.define('PVE.NodeSummary', {
            failure: error_handler
        });
 
-       PVE.Utils.API2Request({
+       Proxmox.Utils.API2Request({
            url: '/nodes/' + me.nodename + '/qemu',
            method: 'GET',
            success: function(response) {
index 724127804dc6bf549622c90c438fd4a26d160fd7..08410b897448ba8ffa4832999f654266fd7c5984 100644 (file)
@@ -56,7 +56,7 @@ Ext.define('PVE.TaskViewer', {
 
        var logCmp = me.down('#taskLog');
 
-       PVE.Utils.API2Request({
+       Proxmox.Utils.API2Request({
            url: "/nodes/" + me.nodename + "/tasks/" + me.upid + "/log",
            method: 'GET',
            success: function(response) {
@@ -80,7 +80,7 @@ Ext.define('PVE.TaskViewer', {
        var statusCmp = me.down('#taskStatus');
        var logCmp = me.down('#taskLog');
 
-       PVE.Utils.API2Request({
+       Proxmox.Utils.API2Request({
            url: "/nodes/" + me.nodename + "/tasks/" + me.upid + "/status",
            method: 'GET',
            success: function(response) {
index 7210d4d99fb2952f78de533112eee7dab83b6962..1ad6705627bea4461d451fadaa1d0c8dd77698c0 100644 (file)
@@ -11,7 +11,7 @@ Ext.define('PVE.VMSummaryBase', {
     vm_command: function(cmd, params) {
        var me = this;
 
-       PVE.Utils.API2Request({
+       Proxmox.Utils.API2Request({
            params: params,
            url: '/nodes/' + me.nodename + '/' + me.vmtype + '/' + me.vmid +
                 '/status/' + cmd,
@@ -100,7 +100,7 @@ Ext.define('PVE.VMSummaryBase', {
            me.setMasked({ xtype: 'loadmask', message: response.htmlStatus });
        };
 
-       PVE.Utils.API2Request({
+       Proxmox.Utils.API2Request({
            url: '/nodes/' + me.nodename + '/' + me.vmtype + '/' + me.vmid +
                 '/status/current',
            method: 'GET',
@@ -116,7 +116,7 @@ Ext.define('PVE.VMSummaryBase', {
 
        var vm_cfg = me.down('#vmconfig');
 
-       PVE.Utils.API2Request({
+       Proxmox.Utils.API2Request({
            url: '/nodes/' + me.nodename + '/' + me.vmtype + '/' + me.vmid +
                 '/config',
            method: 'GET',