]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: guest import: avoid view-model race on setting os type
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 13 Mar 2024 13:52:31 +0000 (14:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Mar 2024 14:17:43 +0000 (15:17 +0100)
Use the default value of the field also as start value in the
viewModel, as other wise the two-way binding can cause the empty
string to be set to the field's value, not vice-versa.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/GuestImport.js

index 6edab72ff7093df230a5caa436964ec096ef2dbd..443bc8860465365f3bdedb90f7f79dcf6e55331f 100644 (file)
@@ -263,7 +263,7 @@ Ext.define('PVE.window.GuestImport', {
            coreCount: 1,
            socketCount: 1,
            liveImport: false,
-           os: '',
+           os: 'l26',
            maxCdDrives: false,
            warnings: [],
        },