mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-24 16:34:17 +00:00
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:
parent
0ffa230e17
commit
4ad65791fc
@ -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;
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user