]> git.proxmox.com Git - pve-manager-legacy.git/commit
ui: lvm-thin: don't add nodeselector/enable multiple times in edit window
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 21 Mar 2023 09:16:09 +0000 (10:16 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 21 Mar 2023 09:28:08 +0000 (10:28 +0100)
commit14be326456122bc1ecde14b686233e9827cd061b
tree61811d619bbf3a797625e8739ea02d6d92ce23fa
parent0bb8ecf7bea41f9439cfb7620c42ddd98fc91004
ui: lvm-thin: don't add nodeselector/enable multiple times in edit window

Seemingly, an empty array is special for Ext JS, and if we push into
it, we overwrite the class definition of that property.

This does not happen when something is already in the array, so the
other edit windows work as expected

To fix it here, remove the empty array entirely, since we already
create an empty one when we need it

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