mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-20 12:12:58 +00:00
ui: ceph: adapt urls to new ceph/pool endpoint
ceph/pools (plural) is deprecated, use the new one. Since the details / status of a pool has been moved from previously ceph/pools/{name} to now ceph/pool/{name}/status, we need to pass the 'loadUrl' to the edit window. Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com> Reviewed-by: Dominik Csapak <d.csapak@proxmox.com> Tested-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
b2e005d76a
commit
b5bbcb4c7f
@ -200,8 +200,9 @@ Ext.define('PVE.Ceph.PoolEdit', {
|
|||||||
cbind: {
|
cbind: {
|
||||||
autoLoad: get => !get('isCreate'),
|
autoLoad: get => !get('isCreate'),
|
||||||
url: get => get('isCreate')
|
url: get => get('isCreate')
|
||||||
? `/nodes/${get('nodename')}/ceph/pools`
|
? `/nodes/${get('nodename')}/ceph/pool`
|
||||||
: `/nodes/${get('nodename')}/ceph/pools/${get('pool_name')}`,
|
: `/nodes/${get('nodename')}/ceph/pool/${get('pool_name')}`,
|
||||||
|
loadUrl: get => `/nodes/${get('nodename')}/ceph/pool/${get('pool_name')}/status`,
|
||||||
method: get => get('isCreate') ? 'POST' : 'PUT',
|
method: get => get('isCreate') ? 'POST' : 'PUT',
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -356,7 +357,7 @@ Ext.define('PVE.node.Ceph.PoolList', {
|
|||||||
model: 'ceph-pool-list',
|
model: 'ceph-pool-list',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'proxmox',
|
type: 'proxmox',
|
||||||
url: `/api2/json/nodes/${nodename}/ceph/pools`,
|
url: `/api2/json/nodes/${nodename}/ceph/pool`,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
let store = Ext.create('Proxmox.data.DiffStore', { rstore: rstore });
|
let store = Ext.create('Proxmox.data.DiffStore', { rstore: rstore });
|
||||||
@ -420,7 +421,7 @@ Ext.define('PVE.node.Ceph.PoolList', {
|
|||||||
let poolName = rec.data.pool_name;
|
let poolName = rec.data.pool_name;
|
||||||
Ext.create('Proxmox.window.SafeDestroy', {
|
Ext.create('Proxmox.window.SafeDestroy', {
|
||||||
showProgress: true,
|
showProgress: true,
|
||||||
url: `/nodes/${nodename}/ceph/pools/${poolName}`,
|
url: `/nodes/${nodename}/ceph/pool/${poolName}`,
|
||||||
params: {
|
params: {
|
||||||
remove_storages: 1,
|
remove_storages: 1,
|
||||||
},
|
},
|
||||||
|
@ -26,7 +26,7 @@ Ext.define('PVE.form.CephPoolSelector', {
|
|||||||
],
|
],
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'proxmox',
|
type: 'proxmox',
|
||||||
url: '/api2/json/nodes/' + me.nodename + '/ceph/pools',
|
url: '/api2/json/nodes/' + me.nodename + '/ceph/pool',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user