[pve-devel] [PATCH v4 manager 2/2] ui: lxc: add edit window for device passthrough

Filip Schauer f.schauer at proxmox.com
Wed Apr 17 10:47:29 CEST 2024


Changed in patch v5. I also fixed a bug that ignored a custom devid when
creating a device passthrough.

https://lists.proxmox.com/pipermail/pve-devel/2024-April/063108.html

On 16/04/2024 15:57, Fiona Ebner wrote:
> Am 16.04.24 um 14:10 schrieb Filip Schauer:
>> +
>> +    cbind: {
>> +	confid: '{confid}',
>> +	isCreate: get => !get('confid'),
>> +    },
> Can't the above be removed while...
>
>> +
>> +    items: [
>> +	{
>> +	    xtype: 'proxmoxintegerfield',
>> +	    name: 'devid',
>> +	    fieldLabel: gettext('Passthrough ID'),
>> +	    minValue: 0,
>> +	    maxValue: PVE.Utils.dev_count - 1,
>> +	    hidden: true,
>> +	    allowBlank: false,
>> +	    disabled: true,
>> +	    labelAlign: 'right',
>> +	    bind: {
> ...using cbind instead of bind here?
>
>> +		hidden: '{!isCreate}',
>> +		disabled: '{!isCreate}',
>> +	    },




More information about the pve-devel mailing list