[pve-devel] [PATCH v2 manager 2/4] node zfs: added new component to display additional zfs details

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


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

diff --git a/www/manager6/node/ZFS.js b/www/manager6/node/ZFS.js
index c28e20c9..e2fa579d 100644
--- a/www/manager6/node/ZFS.js
+++ b/www/manager6/node/ZFS.js
@@ -262,6 +262,46 @@ Ext.define('PVE.node.ZFSStatus', {
     }
 });
 
+Ext.define('PVE.node.ZFSStatus', {
+    extend: 'Proxmox.grid.ObjectGrid',
+    xtype: 'pveZFSStatus',
+    layout: 'fit',
+    border: false,
+
+    initComponent: function() {
+	 /*jslint confusion: true */
+        var me = this;
+
+	if (!me.nodename) {
+	    throw "no node name specified";
+	}
+
+	if (!me.zpool) {
+	    throw "no zpool specified";
+	}
+	
+	me.url = "/api2/extjs/nodes/" + me.nodename + "/disks/zfs/" + me.zpool;
+	
+	me.rows = {
+	    scan: {
+		header: gettext('Scan')
+	    },
+	    status: {
+		header: gettext('Status')
+	    },
+	    action: {
+		header: gettext('Action')
+	    },
+	    errors: {
+		header: gettext('Errors')
+	    }
+	};
+	
+	me.callParent();
+	me.reload();
+    }
+});
+
 Ext.define('PVE.node.ZFSList', {
     extend: 'Ext.grid.Panel',
     xtype: 'pveZFSList',
-- 
2.11.0




More information about the pve-devel mailing list