]> git.proxmox.com Git - pve-manager.git/commit
ui: lvm-thin: fix not being able to edit the storage
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 21 Mar 2023 09:16:10 +0000 (10:16 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Mar 2023 09:29:18 +0000 (10:29 +0100)
commit2d9be15856460c6977d8feedbfd8489c5b34d4a7
treeb0943aad5207952d2146110391d5cf455ccc348d
parent99654ffc349ebc7114f22ab00a0ac1102db64d18
ui: lvm-thin: fix not being able to edit the storage

The change handler of the edit config from a displayEditField still
triggers, even if hidden and disabled. This then enables another
editConfig part of a displayEditField, which triggers an error in the
API.

To fix that, simply check if this field is disabled before setting
the other fields value

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/storage/LvmThinEdit.js