mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 18:04:16 +00:00
gui: ceph configdb: fix store load
instead of using API2Request, use the proper grid store load Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
59e330805d
commit
cdb828c788
@ -3,20 +3,10 @@ Ext.define('PVE.node.CephConfigDb', {
|
|||||||
alias: 'widget.pveNodeCephConfigDb',
|
alias: 'widget.pveNodeCephConfigDb',
|
||||||
|
|
||||||
border: false,
|
border: false,
|
||||||
load: function() {
|
store: {
|
||||||
var me = this;
|
proxy: {
|
||||||
|
type: 'proxmox'
|
||||||
Proxmox.Utils.API2Request({
|
}
|
||||||
url: me.url,
|
|
||||||
waitMsgTarget: me,
|
|
||||||
failure: function(response, opts) {
|
|
||||||
console.log(response);
|
|
||||||
},
|
|
||||||
success: function(response, opts) {
|
|
||||||
var data = response.result.data;
|
|
||||||
me.getStore().setData(data);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
columns: [
|
columns: [
|
||||||
@ -63,18 +53,12 @@ Ext.define('PVE.node.CephConfigDb', {
|
|||||||
throw "no node name specified";
|
throw "no node name specified";
|
||||||
}
|
}
|
||||||
|
|
||||||
Ext.apply(me, {
|
me.store.proxy.url = '/api2/json/nodes/' + nodename + '/ceph/configdb';
|
||||||
url: '/nodes/' + nodename + '/ceph/configdb',
|
|
||||||
listeners: {
|
|
||||||
activate: function() {
|
|
||||||
me.load();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
|
||||||
me.load();
|
Proxmox.Utils.monStoreErrors(me, me.getStore());
|
||||||
|
me.getStore().load();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Ext.define('PVE.node.CephConfig', {
|
Ext.define('PVE.node.CephConfig', {
|
||||||
|
Loading…
Reference in New Issue
Block a user