Commit b45925c9 authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

resourcegrid : add template menu

same than the resourcetree
or we can create linked clone from the grid
Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent 36ec32ec
......@@ -195,10 +195,14 @@ Ext.define('PVE.grid.ResourceGrid', {
v.select(record);
var menu;
if (record.data.type === 'qemu') {
if (record.data.type === 'qemu' && !record.data.template) {
menu = Ext.create('PVE.qemu.CmdMenu', {
pveSelNode: record
});
} else if (record.data.type === 'qemu' && record.data.template) {
menu = Ext.create('PVE.qemu.TemplateMenu', {
pveSelNode: record
});
} else if (record.data.type === 'openvz') {
menu = Ext.create('PVE.openvz.CmdMenu', {
pveSelNode: record
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment