[pve-devel] [PATCH manager] use API2Request from Proxmox.Utils in mobile interface

Dominik Csapak d.csapak at proxmox.com
Fri Jan 26 08:53:55 CET 2018


this was missing from the migration to the widget-toolkit

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/mobile/Datacenter.js    | 4 ++--
 www/mobile/Login.js         | 2 +-
 www/mobile/Migrate.js       | 2 +-
 www/mobile/NodeSummary.js   | 6 +++---
 www/mobile/TaskViewer.js    | 4 ++--
 www/mobile/VMSummaryBase.js | 6 +++---
 6 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/www/mobile/Datacenter.js b/www/mobile/Datacenter.js
index 7c27b5d8..f113a589 100644
--- a/www/mobile/Datacenter.js
+++ b/www/mobile/Datacenter.js
@@ -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) {
diff --git a/www/mobile/Login.js b/www/mobile/Login.js
index 30847c8c..682d3578 100644
--- a/www/mobile/Login.js
+++ b/www/mobile/Login.js
@@ -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,
diff --git a/www/mobile/Migrate.js b/www/mobile/Migrate.js
index f0b7995c..0313b506 100644
--- a/www/mobile/Migrate.js
+++ b/www/mobile/Migrate.js
@@ -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',
diff --git a/www/mobile/NodeSummary.js b/www/mobile/NodeSummary.js
index 4059217b..8f93c45a 100644
--- a/www/mobile/NodeSummary.js
+++ b/www/mobile/NodeSummary.js
@@ -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) {
diff --git a/www/mobile/TaskViewer.js b/www/mobile/TaskViewer.js
index 72412780..08410b89 100644
--- a/www/mobile/TaskViewer.js
+++ b/www/mobile/TaskViewer.js
@@ -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) {
diff --git a/www/mobile/VMSummaryBase.js b/www/mobile/VMSummaryBase.js
index 7210d4d9..1ad67056 100644
--- a/www/mobile/VMSummaryBase.js
+++ b/www/mobile/VMSummaryBase.js
@@ -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',
-- 
2.11.0





More information about the pve-devel mailing list