[pve-devel] [PATCH manager 2/3] adapt zfs pool creation layout for by-id links

Stoiko Ivanov s.ivanov at proxmox.com
Thu Jun 4 13:50:54 CEST 2020


hide the Serial column (the by-id link contains the same information) and
add flex to all columns

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 www/manager6/node/ZFS.js | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/www/manager6/node/ZFS.js b/www/manager6/node/ZFS.js
index b8978559..01e67600 100644
--- a/www/manager6/node/ZFS.js
+++ b/www/manager6/node/ZFS.js
@@ -8,6 +8,7 @@ Ext.define('PVE.node.CreateZFS', {
     showProgress: true,
 
     onlineHelp: 'chapter_zfs',
+    width: 800,
 
     initComponent : function() {
         var me = this;
@@ -127,26 +128,31 @@ Ext.define('PVE.node.CreateZFS', {
 				{
 				    text: gettext('Device'),
 				    dataIndex: 'devpath',
-				    flex: 1
+				    flex: 2,
 				},
 				{
 				    text: gettext('Stable Device Link'),
 				    dataIndex: 'by_id_link',
+				    flex: 4,
 				},
 				{
 				    text: gettext('Serial'),
-				    dataIndex: 'serial'
+				    dataIndex: 'serial',
+				    hidden: true,
+				    flex: 2,
 				},
 				{
 				    text: gettext('Size'),
 				    dataIndex: 'size',
-				    renderer: PVE.Utils.render_size
+				    renderer: PVE.Utils.render_size,
+				    flex: 1,
 				},
 				{
 				    header: gettext('Order'),
 				    xtype: 'widgetcolumn',
 				    dataIndex: 'order',
 				    sortable: true,
+				    flex: 1,
 				    widget: {
 					xtype: 'proxmoxintegerfield',
 					minValue: 1,
-- 
2.20.1





More information about the pve-devel mailing list