fix #3689: add gridhandle to firewall rules to indicate drag/drop

dragHandle was copied from the BootOrderEdit.
Also increases the width by 23px to make space for it.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-12-02 11:38:47 +01:00 committed by Thomas Lamprecht
parent 0ffa230e17
commit 4ad65791fc

View File

@ -623,19 +623,19 @@ Ext.define('PVE.FirewallRules', {
// similar to xtype: 'rownumberer',
dataIndex: 'pos',
resizable: false,
minWidth: 42,
maxWidth: 60,
minWidth: 65,
maxWidth: 83,
flex: 1,
sortable: false,
align: 'right',
hideable: false,
menuDisabled: true,
renderer: function(value, metaData, record, rowIdx, colIdx) {
metaData.tdCls = Ext.baseCSSPrefix + 'grid-cell-special';
let dragHandle = "<i class='pve-grid-fa fa fa-fw fa-reorder cursor-move'></i>";
if (value >= 0) {
return value;
return dragHandle + value;
}
return '';
return dragHandle;
},
},
{