[pve-devel] [PATCH manager 3/4] node zfs: renamed & revised tree component to display more information
Tim Marx
t.marx at proxmox.com
Wed Oct 31 14:03:17 CET 2018
this component got renamed to ZFSConfig to clarify that it only displays the
config tree of the status command. added some new fields to display additional
information and removed some config values and functions which are no longer
needed.
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 9314e45e..5e4a5d2b 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