ui: disk manage: move dRAID options into field set

to avoid an overly asymmetric form field balance

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-11-17 19:29:19 +01:00
parent 049b783638
commit 2db62238ee

View File

@ -75,32 +75,6 @@ Ext.define('PVE.node.CreateZFS', {
value: '{raidLevel}', value: '{raidLevel}',
}, },
}, },
{
xtype: 'proxmoxintegerfield',
name: 'draidData',
fieldLabel: gettext('dRAID Data Devs'),
minValue: 1,
allowBlank: false,
disabled: true,
hidden: true,
bind: {
disabled: '{!isDraid}',
hidden: '{!isDraid}',
},
},
{
xtype: 'proxmoxintegerfield',
name: 'draidSpares',
fieldLabel: gettext('dRAID Spares'),
minValue: 0,
allowBlank: false,
disabled: true,
hidden: true,
bind: {
disabled: '{!isDraid}',
hidden: '{!isDraid}',
},
},
{ {
xtype: 'proxmoxKVComboBox', xtype: 'proxmoxKVComboBox',
fieldLabel: gettext('Compression'), fieldLabel: gettext('Compression'),
@ -126,6 +100,48 @@ Ext.define('PVE.node.CreateZFS', {
}, },
], ],
columnB: [ columnB: [
{
xtype: 'fieldset',
title: gettext('dRAID Config'),
collapsible: false,
bind: {
hidden: '{!isDraid}',
},
layout: 'hbox',
padding: '5px 10px',
defaults: {
flex: 1,
layout: 'anchor',
},
items: [{
xtype: 'proxmoxintegerfield',
name: 'draidData',
fieldLabel: gettext('Data Devs'),
minValue: 1,
allowBlank: false,
disabled: true,
hidden: true,
bind: {
disabled: '{!isDraid}',
hidden: '{!isDraid}',
},
padding: '0 10 0 0',
},
{
xtype: 'proxmoxintegerfield',
name: 'draidSpares',
fieldLabel: gettext('Spares'),
minValue: 0,
allowBlank: false,
disabled: true,
hidden: true,
bind: {
disabled: '{!isDraid}',
hidden: '{!isDraid}',
},
padding: '0 0 0 10',
}],
},
{ {
xtype: 'pmxMultiDiskSelector', xtype: 'pmxMultiDiskSelector',
name: 'devices', name: 'devices',