From: Nicolas Frey <n.frey@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-manager 2/3] ui: bulk actions: add cmdmenu with guest selection
Date: Tue, 27 Oct 2026 15:30:49 +0100 [thread overview]
Message-ID: <20261027143050.493707-3-n.frey@proxmox.com> (raw)
In-Reply-To: <20261027143050.493707-1-n.frey@proxmox.com>
as the `TagCmdMenu` did before, but with an option to pass in a list of
VMIDs.
Signed-off-by: Nicolas Frey <n.frey@proxmox.com>
---
| 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
--git a/www/manager6/dc/CmdMenu.js b/www/manager6/dc/CmdMenu.js
index 87671adb..b6bc81f2 100644
--- a/www/manager6/dc/CmdMenu.js
+++ b/www/manager6/dc/CmdMenu.js
@@ -127,3 +127,26 @@ Ext.define('PVE.dc.TagCmdMenu', {
me.callParent();
},
});
+
+Ext.define('PVE.dc.GuestSelectionCmdMenu', {
+ extend: 'PVE.dc.CmdMenu',
+ xtype: 'guestSelectionCmdMenu',
+
+ minWidth: 220,
+
+ initComponent: function () {
+ let me = this;
+
+ if (!me.vmids?.length) {
+ throw 'no vmids specified';
+ }
+
+ me.title = `${gettext('Selected Guests')}`;
+
+ me.extraHandlerArgs = {
+ vmids: me.vmids,
+ };
+
+ me.callParent();
+ },
+});
--
2.47.3
next prev parent reply other threads:[~2026-10-27 14:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 14:30 [RFC manager 0/3] add bulk actions cmdmenu with multi select in resource tree Nicolas Frey
2026-10-27 14:30 ` [PATCH pve-manager 1/3] ui: bulk action window: allow restricting the guest list by VMIDs Nicolas Frey
2026-10-27 14:30 ` Nicolas Frey [this message]
2026-10-27 14:30 ` [PATCH pve-manager 3/3] ui: resource tree: allow selecting multiple guests for bulk actions Nicolas Frey
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=20261027143050.493707-3-n.frey@proxmox.com \
--to=n.frey@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.