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

Tim Marx t.marx at proxmox.com
Tue Nov 6 13:48:51 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 474232eb..11bf5c6c 100644
--- a/www/manager6/node/ZFS.js
+++ b/www/manager6/node/ZFS.js
@@ -384,6 +384,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,
@@ -391,14 +404,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.reload();
+		    }
+		}]
+	    }]
 	}).show();
+	
     },
 
     set_button_status: function() {
-- 
2.11.0




More information about the pve-devel mailing list