]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/pool/Summary.js
ui: eslint: fix trailing comma and comma related whitespaces errors
[pve-manager.git] / www / manager6 / pool / Summary.js
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('activate', rstore.startUpdate);
31 me.on('destroy', rstore.stopUpdate);
32
33 me.callParent();
34 },
35 });