The new checkbox allows users to create a HA resource for the VM right
away. The 'state' of the HA resource will match the value of the "Start
after creation" checkbox.

Signed-off-by: Michael Köppl <[email protected]>
---
 www/manager6/qemu/CreateWizard.js | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/www/manager6/qemu/CreateWizard.js 
b/www/manager6/qemu/CreateWizard.js
index a10b9c0af..6ef70c366 100644
--- a/www/manager6/qemu/CreateWizard.js
+++ b/www/manager6/qemu/CreateWizard.js
@@ -255,11 +255,22 @@ Ext.define('PVE.qemu.CreateWizard', {
             ],
             dockedItems: [
                 {
-                    xtype: 'proxmoxcheckbox',
-                    name: 'start',
+                    xtype: 'container',
                     dock: 'bottom',
+                    border: false,
                     margin: '5 0 0 0',
-                    boxLabel: gettext('Start after created'),
+                    items: [
+                        {
+                            xtype: 'proxmoxcheckbox',
+                            name: 'start',
+                            boxLabel: gettext('Start after created'),
+                        },
+                        {
+                            xtype: 'proxmoxcheckbox',
+                            name: 'ha-managed',
+                            boxLabel: gettext('Add as HA resource'),
+                        },
+                    ],
                 },
             ],
             listeners: {
-- 
2.47.3



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to