]>
Commit | Line | Data |
---|---|---|
c801943b 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'), | |
16 | required: true | |
17 | } | |
18 | }; | |
19 | ||
20 | Ext.applyIf(me, { | |
21 | title: gettext('Status'), | |
22 | url: "/api2/json/pools/" + pool, | |
23 | cwidth1: 150, | |
24 | interval: 30000, | |
25 | //height: 195, | |
26 | rows: rows | |
27 | }); | |
28 | ||
29 | me.callParent(); | |
30 | } | |
31 | }); |