mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 18:07: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;
|
||||
|
||||
if (me.create) {
|
||||
url = '/api2/extjs/access/pools';
|
||||
url = '/api2/extjs/pools';
|
||||
method = 'POST';
|
||||
} else {
|
||||
url = '/api2/extjs/access/pools/' + me.poolid;
|
||||
url = '/api2/extjs/pools/' + me.poolid;
|
||||
method = 'PUT';
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ Ext.define('PVE.dc.PoolView', {
|
||||
},
|
||||
handler: function(btn, event, rec) {
|
||||
PVE.Utils.API2Request({
|
||||
url: '/access/pools/' + rec.data.poolid,
|
||||
url: '/pools/' + rec.data.poolid,
|
||||
method: 'DELETE',
|
||||
waitMsgTarget: me,
|
||||
callback: function() {
|
||||
|
@ -47,7 +47,7 @@ Ext.define('PVE.form.PoolSelector', {
|
||||
fields: [ 'poolid', 'comment' ],
|
||||
proxy: {
|
||||
type: 'pve',
|
||||
url: "/api2/json/access/pools"
|
||||
url: "/api2/json/pools"
|
||||
},
|
||||
idProperty: 'poolid'
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user