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', { ...@@ -195,10 +195,14 @@ Ext.define('PVE.grid.ResourceGrid', {
v.select(record); v.select(record);
var menu; var menu;
if (record.data.type === 'qemu') { if (record.data.type === 'qemu' && !record.data.template) {
menu = Ext.create('PVE.qemu.CmdMenu', { menu = Ext.create('PVE.qemu.CmdMenu', {
pveSelNode: record 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') { } else if (record.data.type === 'openvz') {
menu = Ext.create('PVE.openvz.CmdMenu', { menu = Ext.create('PVE.openvz.CmdMenu', {
pveSelNode: record pveSelNode: record
...@@ -225,4 +229,4 @@ Ext.define('PVE.grid.ResourceGrid', { ...@@ -225,4 +229,4 @@ Ext.define('PVE.grid.ResourceGrid', {
updateGrid(); updateGrid();
rstore.on("load", load_cb); rstore.on("load", load_cb);
} }
}); });
\ No newline at end of file
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