use API2Request from Proxmox.Utils in mobile interface

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>
This commit is contained in:
Dominik Csapak 2018-01-26 08:52:55 +01:00
parent 0bdf837031
commit 51d8307e44
6 changed files with 12 additions and 12 deletions

View 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) {

View 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,

View 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',

View 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) {

View 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) {

View 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',