[pve-devel] [PATCH 3/6] add clone vm option in qemu vm right click menu

Alexandre Derumier aderumier at odiso.com
Tue Apr 2 08:49:11 CEST 2013


fixme: add a new icon

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 www/manager/qemu/CmdMenu.js |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/www/manager/qemu/CmdMenu.js b/www/manager/qemu/CmdMenu.js
index c61d1c0..f80922b 100644
--- a/www/manager/qemu/CmdMenu.js
+++ b/www/manager/qemu/CmdMenu.js
@@ -78,6 +78,18 @@ Ext.define('PVE.qemu.CmdMenu', {
 		}
 	    },
 	    {
+		text: gettext('Clone To VM'),
+		icon: '/pve2/images/forward.png',
+		handler: function() {
+		    var win = Ext.create('PVE.window.Clone', {
+			snapname: 'current',
+			nodename: nodename,
+			vmid: vmid,
+		    });
+		    win.show();
+		}
+	    },
+	    {
 		text: gettext('Console'),
 		icon: '/pve2/images/display.png',
 		handler: function() {
-- 
1.7.10.4




More information about the pve-devel mailing list