Signed-off-by: Tim Marx <[email protected]>
---
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
_______________________________________________
pve-devel mailing list
[email protected]
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel