[pve-devel] [PATCH manager v2 1/1] add model information to ZFS create window

Stoiko Ivanov s.ivanov at proxmox.com
Fri Jun 5 15:24:55 CEST 2020


and improve the layout by adding flex values and increasing the width.

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

diff --git a/www/manager6/node/ZFS.js b/www/manager6/node/ZFS.js
index c978f742..88c285df 100644
--- a/www/manager6/node/ZFS.js
+++ b/www/manager6/node/ZFS.js
@@ -9,6 +9,8 @@ Ext.define('PVE.node.CreateZFS', {
 
     onlineHelp: 'chapter_zfs',
 
+    width: 800,
+
     initComponent : function() {
         var me = this;
 
@@ -123,22 +125,30 @@ Ext.define('PVE.node.CreateZFS', {
 				{
 				    text: gettext('Device'),
 				    dataIndex: 'devpath',
-				    flex: 1
+				    flex: 2,
+				},
+				{
+				    text: gettext('Model'),
+				    dataIndex: 'model',
+				    flex: 2,
 				},
 				{
 				    text: gettext('Serial'),
-				    dataIndex: 'serial'
+				    dataIndex: 'serial',
+				    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