]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/dc/Backup.js
fix #4627: ui: backup edit: don't deselect all guests on load
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 31 Mar 2023 10:03:08 +0000 (12:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 12 Apr 2023 11:27:57 +0000 (13:27 +0200)
commit25f7446c90fc69db0f8931dc46928faef519f799
tree1ae7e1dd885eff00d7ab8715d8f2794f499aed4e
parent16f3482b3422d808adbc932bb87a84ebba360d25
fix #4627: ui: backup edit: don't deselect all guests on load

'selectPoolMembers' will be called when the poolid field changes.
(That can even happen when the mode is not even 'pool') Due to how
the fields are set, there is a race condition that this will be
called after the remaining fields were set up, including the VM list
that might have entries selected.

Since the first thing we do here is to deselect all, this wiped the
virtual guest selection sometimes.

To fix it, check if we're actually in the correct mode before doing
anything.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/dc/Backup.js