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

Tim Marx t.marx at proxmox.com
Mon Nov 12 11:41:15 CET 2018


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

diff --git a/www/manager6/node/ZFS.js b/www/manager6/node/ZFS.js
index e341a360..5a609826 100644
--- a/www/manager6/node/ZFS.js
+++ b/www/manager6/node/ZFS.js
@@ -383,6 +383,19 @@ Ext.define('PVE.node.ZFSList', {
 
     show_detail: function(zpool) {
 	var me = this;
+
+	var devicetree = Ext.create('PVE.node.ZFSDevices', {
+	    title: gettext('Devices'),
+	    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,
@@ -390,13 +403,20 @@ 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, devicetree],
+		tbar: [{
+		    text: gettext('Reload'),
+		    iconCls: 'fa fa-refresh',
+		    handler: function() {
+
+			devicetree.reload();
+			detailsgrid.reload();
+		    }
+		}]
+	    }]
 	}).show();
     },
 
-- 
2.11.0




More information about the pve-devel mailing list