]> git.proxmox.com Git - pve-manager.git/commitdiff
copy pool/Summary.js from manager to manager5
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 3 Jul 2015 09:29:11 +0000 (11:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 3 Jul 2015 09:29:11 +0000 (11:29 +0200)
www/manager5/pool/Summary.js [new file with mode: 0644]

diff --git a/www/manager5/pool/Summary.js b/www/manager5/pool/Summary.js
new file mode 100644 (file)
index 0000000..2f23de3
--- /dev/null
@@ -0,0 +1,36 @@
+Ext.define('PVE.pool.Summary', {
+    extend: 'Ext.panel.Panel',
+    alias: 'widget.pvePoolSummary',
+
+    initComponent: function() {
+        var me = this;
+
+       var pool = me.pveSelNode.data.pool;
+       if (!pool) {
+           throw "no pool specified";
+       }
+
+       var statusview = Ext.create('PVE.pool.StatusView', {
+           pveSelNode: me.pveSelNode,
+           style: 'padding-top:0px'
+       });
+
+       var rstore = statusview.rstore;
+
+       Ext.apply(me, {
+           autoScroll: true,
+           bodyStyle: 'padding:10px',
+           defaults: {
+               style: 'padding-top:10px',
+               width: 800
+           },
+           items: [ statusview ]
+       });
+
+       me.on('show', rstore.startUpdate);
+       me.on('hide', rstore.stopUpdate);
+       me.on('destroy', rstore.stopUpdate);    
+
+       me.callParent();
+    }
+});