mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 21:28:40 +00:00
fix pool API path
This commit is contained in:
parent
7a6b5d9f21
commit
00267e948d
@ -11,10 +11,10 @@ Ext.define('PVE.dc.PoolEdit', {
|
|||||||
var method;
|
var method;
|
||||||
|
|
||||||
if (me.create) {
|
if (me.create) {
|
||||||
url = '/api2/extjs/access/pools';
|
url = '/api2/extjs/pools';
|
||||||
method = 'POST';
|
method = 'POST';
|
||||||
} else {
|
} else {
|
||||||
url = '/api2/extjs/access/pools/' + me.poolid;
|
url = '/api2/extjs/pools/' + me.poolid;
|
||||||
method = 'PUT';
|
method = 'PUT';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ Ext.define('PVE.dc.PoolView', {
|
|||||||
},
|
},
|
||||||
handler: function(btn, event, rec) {
|
handler: function(btn, event, rec) {
|
||||||
PVE.Utils.API2Request({
|
PVE.Utils.API2Request({
|
||||||
url: '/access/pools/' + rec.data.poolid,
|
url: '/pools/' + rec.data.poolid,
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
waitMsgTarget: me,
|
waitMsgTarget: me,
|
||||||
callback: function() {
|
callback: function() {
|
||||||
|
@ -47,7 +47,7 @@ Ext.define('PVE.form.PoolSelector', {
|
|||||||
fields: [ 'poolid', 'comment' ],
|
fields: [ 'poolid', 'comment' ],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'pve',
|
type: 'pve',
|
||||||
url: "/api2/json/access/pools"
|
url: "/api2/json/pools"
|
||||||
},
|
},
|
||||||
idProperty: 'poolid'
|
idProperty: 'poolid'
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user