From: "Michael Köppl" <m.koeppl@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH manager v2 3/3] ui: restore: add checkbox for adding HA resource upon restore of guest
Date: Tue, 7 Oct 2025 14:41:31 +0200 [thread overview]
Message-ID: <20251007124131.145665-4-m.koeppl@proxmox.com> (raw)
In-Reply-To: <20251007124131.145665-1-m.koeppl@proxmox.com>
Matching the checkbox in the CreateWizard dialogs for VMs and CTs, add
the option to create a HA resource when restoring a guest.
Signed-off-by: Michael Köppl <m.koeppl@proxmox.com>
---
www/manager6/window/Restore.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/www/manager6/window/Restore.js b/www/manager6/window/Restore.js
index 690116df6..e3155f52d 100644
--- a/www/manager6/window/Restore.js
+++ b/www/manager6/window/Restore.js
@@ -41,6 +41,9 @@ Ext.define('PVE.window.Restore', {
if (values.start && !values['live-restore']) {
params.start = 1;
}
+ if (values['ha-managed']) {
+ params['ha-managed'] = 1;
+ }
if (values['live-restore']) {
params['live-restore'] = 1;
}
@@ -240,6 +243,15 @@ Ext.define('PVE.window.Restore', {
labelWidth: 105,
checked: false,
},
+ {
+ xtype: 'proxmoxcheckbox',
+ name: 'ha-managed',
+ reference: 'ha-managed',
+ flex: 1,
+ fieldLabel: gettext('Add as HA resource'),
+ labelWidth: 120,
+ checked: false,
+ },
],
},
];
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
prev parent reply other threads:[~2025-10-07 12:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-07 12:41 [pve-devel] [PATCH manager v2 0/3] add option to add guest as HA resource Michael Köppl
2025-10-07 12:41 ` [pve-devel] [PATCH manager v2 1/3] qemu: create: add checkbox for creating HA resource upon VM creation Michael Köppl
2025-10-07 12:41 ` [pve-devel] [PATCH manager v2 2/3] lxc: create: add checkbox for creating HA resource upon CT creation Michael Köppl
2025-10-07 12:41 ` Michael Köppl [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251007124131.145665-4-m.koeppl@proxmox.com \
--to=m.koeppl@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.