]> git.proxmox.com Git - pve-manager.git/blob - www/manager/ceph/Crush.js
disable animation of charts on load
[pve-manager.git] / www / manager / ceph / Crush.js
1 Ext.define('PVE.node.CephCrushMap', {
2 extend: 'Ext.panel.Panel',
3 alias: ['widget.pveNodeCephCrushMap'],
4
5 load: function() {
6 var me = this;
7
8 PVE.Utils.API2Request({
9 url: me.url,
10 waitMsgTarget: me,
11 failure: function(response, opts) {
12 me.update(gettext('Error') + " " + response.htmlStatus);
13 },
14 success: function(response, opts) {
15 var data = response.result.data;
16 me.update(Ext.htmlEncode(data));
17 }
18 });
19 },
20
21 initComponent: function() {
22 var me = this;
23
24 var nodename = me.pveSelNode.data.node;
25 if (!nodename) {
26 throw "no node name specified";
27 }
28
29 Ext.apply(me, {
30 url: '/nodes/' + nodename + '/ceph/crush',
31 bodyStyle: 'white-space:pre',
32 bodyPadding: 5,
33 autoScroll: true,
34 listeners: {
35 show: function() {
36 me.load();
37 }
38 }
39 });
40
41 me.callParent();
42
43 me.load();
44 }
45 });