[pve-devel] [RFC manager 4/4] Allow for right-click actions on pools

Philip Abernethy p.abernethy at proxmox.com
Wed Aug 30 17:23:01 CEST 2017


Links the pool.CmdMenu in createCmdMenu to make it available.
Makefile updated to include all necessary files.
---
 www/manager6/Makefile | 3 +++
 www/manager6/Utils.js | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/www/manager6/Makefile b/www/manager6/Makefile
index 6c3efe0d..3ac18b39 100644
--- a/www/manager6/Makefile
+++ b/www/manager6/Makefile
@@ -72,6 +72,7 @@ JSSRC= 				                 	\
 	form/VMSelector.js			\
 	form/USBSelector.js				\
 	form/CalendarEvent.js				\
+	form/MemberVMSelector.js			\
 	dc/Tasks.js					\
 	dc/Log.js					\
 	panel/StatusPanel.js				\
@@ -133,6 +134,7 @@ JSSRC= 				                 	\
 	node/Config.js					\
 	window/Migrate.js				\
 	window/BulkAction.js				\
+	window/PoolBulkAction.js			\
 	qemu/Monitor.js					\
 	qemu/Summary.js					\
 	qemu/OSTypeEdit.js				\
@@ -175,6 +177,7 @@ JSSRC= 				                 	\
 	pool/StatusView.js				\
 	pool/Summary.js					\
 	pool/Config.js					\
+	pool/CmdMenu.js					\
 	storage/ContentView.js				\
 	storage/StatusView.js				\
 	storage/Summary.js				\
diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index 0b850977..f8b2d616 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -1348,7 +1348,10 @@ Ext.define('PVE.Utils', { utilities: {
 	    menu = Ext.create('PVE.node.CmdMenu', {
 		nodename: record.data.node
 	    });
-
+	} else if (record.data.type === 'pool') {
+	    menu = Ext.create('PVE.pool.CmdMenu', {
+		pveSelNode: record
+	    });
 	} else {
 	    return;
 	}
-- 
2.11.0




More information about the pve-devel mailing list