[pve-devel] [PATCH manager 4/4] node zfs: added panel to window as container for new components

Tim Marx t.marx at proxmox.com
Wed Oct 31 14:03:18 CET 2018


Signed-off-by: Tim Marx <t.marx at proxmox.com>
---
 www/manager6/node/ZFS.js | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/www/manager6/node/ZFS.js b/www/manager6/node/ZFS.js
index 5e4a5d2b..101398bc 100644
--- a/www/manager6/node/ZFS.js
+++ b/www/manager6/node/ZFS.js
@@ -407,6 +407,19 @@ Ext.define('PVE.node.ZFSList', {
 
     show_detail: function(zpool) {
 	var me = this;
+
+	var configtree = Ext.create('PVE.node.ZFSConfig', {
+	    title: gettext('Config'),
+	    nodename: me.nodename,
+	    zpool: zpool
+	});
+
+	var detailsgrid = Ext.create('PVE.node.ZFSStatus', {
+	    layout: 'fit',
+	    nodename: me.nodename,
+	    zpool: zpool
+	});
+
 	var win = Ext.create('Ext.window.Window', {
 	    modal: true,
 	    width: 800,
@@ -414,14 +427,22 @@ Ext.define('PVE.node.ZFSList', {
 	    resizable: true,
 	    layout: 'fit',
 	    title: gettext('Status') + ': ' + zpool,
-	    items: [
-		{
-		    xtype: 'pveZFSStatus',
-		    nodename: me.nodename,
-		    zpool: zpool
-		}
-	    ]
+	    items:[{
+		xtype: 'panel',
+		region: 'center',
+		items: [detailsgrid, configtree],
+		tbar: [{
+		    text: gettext('Reload'),
+		    iconCls: 'fa fa-refresh',
+		    handler: function() {
+			
+			configtree.reload();
+			detailsgrid.store.load();
+		    }
+		}]
+	    }]
 	}).show();
+	
     },
 
     set_button_status: function() {
-- 
2.11.0




More information about the pve-devel mailing list