]>
Commit | Line | Data |
---|---|---|
0004edad DM |
1 | Ext.define('PVE.pool.Summary', { |
2 | extend: 'Ext.panel.Panel', | |
3 | alias: 'widget.pvePoolSummary', | |
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 statusview = Ext.create('PVE.pool.StatusView', { | |
14 | pveSelNode: me.pveSelNode, | |
15 | style: 'padding-top:0px' | |
16 | }); | |
17 | ||
18 | var rstore = statusview.rstore; | |
19 | ||
20 | Ext.apply(me, { | |
21 | autoScroll: true, | |
22 | bodyStyle: 'padding:10px', | |
23 | defaults: { | |
24 | style: 'padding-top:10px', | |
25 | width: 800 | |
26 | }, | |
27 | items: [ statusview ] | |
28 | }); | |
29 | ||
30 | me.on('show', rstore.startUpdate); | |
31 | me.on('hide', rstore.stopUpdate); | |
32 | me.on('destroy', rstore.stopUpdate); | |
33 | ||
34 | me.callParent(); | |
35 | } | |
36 | }); |