]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/ceph/Crush.js
1 Ext
.define('PVE.node.CephCrushMap', {
2 extend
: 'Ext.panel.Panel',
3 alias
: ['widget.pveNodeCephCrushMap'],
4 bodyStyle
: 'white-space:pre',
8 stateId
: 'layout-ceph-crush',
13 Proxmox
.Utils
.API2Request({
16 failure: function(response
, opts
) {
17 me
.update(gettext('Error') + " " + response
.htmlStatus
);
18 var msg
= response
.htmlStatus
;
19 PVE
.Utils
.showCephInstallOrMask(
22 me
.pveSelNode
.data
.node
,
23 win
=> me
.mon(win
, 'cephInstallWindowClosed', () => me
.load()),
26 success: function(response
, opts
) {
27 var data
= response
.result
.data
;
28 me
.update(Ext
.htmlEncode(data
));
33 initComponent: function() {
36 let nodename
= me
.pveSelNode
.data
.node
;
38 throw "no node name specified";
42 url
: `/nodes/${nodename}/ceph/crush`,
44 activate
: () => me
.load(),