[pve-devel] [PATCH v2 manager 3/4] node zfs: renamed & revised tree component to display more information

Tim Marx t.marx at proxmox.com
Tue Nov 6 13:48:50 CET 2018


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

diff --git a/www/manager6/node/ZFS.js b/www/manager6/node/ZFS.js
index e2fa579d..474232eb 100644
--- a/www/manager6/node/ZFS.js
+++ b/www/manager6/node/ZFS.js
@@ -164,9 +164,9 @@ Ext.define('PVE.node.CreateZFS', {
     }
 });
 
-Ext.define('PVE.node.ZFSStatus', {
+Ext.define('PVE.node.ZFSConfig', {
     extend: 'Ext.tree.Panel',
-    xtype: 'pveZFSStatus',
+    xtype: 'pveZFSConfig',
     stateful: true,
     stateId: 'grid-node-zfsstatus',
     columns: [
@@ -182,6 +182,18 @@ Ext.define('PVE.node.ZFSStatus', {
 	    dataIndex: 'state'
 	},
 	{
+	    text: gettext('READ'),
+	    dataIndex: 'read'
+	},
+	{
+	    text: gettext('WRITE'),
+	    dataIndex: 'write'
+	},
+	{
+	    text: gettext('CKSUM'),
+	    dataIndex: 'cksum'
+	},
+	{
 	    text: gettext('Message'),
 	    dataIndex: 'msg'
 	}
@@ -189,17 +201,6 @@ Ext.define('PVE.node.ZFSStatus', {
 
     rootVisible: true,
 
-    tbar: [
-	{
-	    text: gettext('Reload'),
-	    iconCls: 'fa fa-refresh',
-	    handler: function() {
-		var me = this.up('panel');
-		me.reload();
-	    }
-	}
-    ],
-
     reload: function() {
 	var me = this;
 	var sm = me.getSelectionModel();
@@ -218,13 +219,6 @@ Ext.define('PVE.node.ZFSStatus', {
 	});
     },
 
-    listeners: {
-	activate: function() {
-	    var me = this;
-	    me.reload();
-	}
-    },
-
     initComponent: function() {
 	 /*jslint confusion: true */
         var me = this;
-- 
2.11.0




More information about the pve-devel mailing list