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