]>
Commit | Line | Data |
---|---|---|
3048ca07 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, | |
f6710aac | 15 | style: 'padding-top:0px', |
3048ca07 DM |
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', | |
f6710aac | 25 | width: 800, |
3048ca07 | 26 | }, |
8058410f | 27 | items: [statusview], |
3048ca07 DM |
28 | }); |
29 | ||
c6179cf5 | 30 | me.on('activate', rstore.startUpdate); |
2a4971d8 | 31 | me.on('destroy', rstore.stopUpdate); |
3048ca07 DM |
32 | |
33 | me.callParent(); | |
f6710aac | 34 | }, |
3048ca07 | 35 | }); |