]>
Commit | Line | Data |
---|---|---|
c801943b | 1 | Ext.define('PVE.pool.StatusView', { |
8ea2c870 | 2 | extend: 'Proxmox.grid.ObjectGrid', |
c801943b | 3 | alias: ['widget.pvePoolStatusView'], |
8c70732b | 4 | disabled: true, |
c801943b | 5 | |
c6179cf5 DC |
6 | title: gettext('Status'), |
7 | cwidth1: 150, | |
8 | interval: 30000, | |
9 | //height: 195, | |
8058410f | 10 | initComponent: function() { |
c801943b DM |
11 | var me = this; |
12 | ||
13 | var pool = me.pveSelNode.data.pool; | |
14 | if (!pool) { | |
15 | throw "no pool specified"; | |
16 | } | |
17 | ||
18 | var rows = { | |
19 | comment: { | |
2a4971d8 | 20 | header: gettext('Comment'), |
2eb0767b | 21 | renderer: Ext.String.htmlEncode, |
f6710aac TL |
22 | required: true, |
23 | }, | |
c801943b DM |
24 | }; |
25 | ||
c6179cf5 | 26 | Ext.apply(me, { |
cd731902 | 27 | url: "/api2/json/pools/?poolid=" + pool, |
f6710aac | 28 | rows: rows, |
c801943b DM |
29 | }); |
30 | ||
31 | me.callParent(); | |
f6710aac | 32 | }, |
c801943b | 33 | }); |