From eafa845f8666da4f603a4ec521292cfe91b17d01 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 15 Mar 2016 09:01:19 +0100 Subject: [PATCH] deactivate (currently) not working lxc templates this deactivates template creating for lxc in the gui, since this does currently not work reliably Signed-off-by: Dominik Csapak --- www/manager/lxc/CmdMenu.js | 40 ++++++++++++++++++------------------- www/manager6/lxc/CmdMenu.js | 40 ++++++++++++++++++------------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/www/manager/lxc/CmdMenu.js b/www/manager/lxc/CmdMenu.js index 3a1928c9..8758bd4c 100644 --- a/www/manager/lxc/CmdMenu.js +++ b/www/manager/lxc/CmdMenu.js @@ -98,26 +98,26 @@ Ext.define('PVE.lxc.CmdMenu', { }); } }, - { - text: gettext('Convert to template'), - icon: '/pve2/images/forward.png', - handler: function() { - var msg = Ext.String.format(gettext("Do you really want to convert {0} into a template?"), gettext('CT') + ' ' + vmid); - Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) { - if (btn !== 'yes') { - return; - } - - PVE.Utils.API2Request({ - url: '/nodes/' + nodename + '/lxc/' + vmid + '/template', - method: 'POST', - failure: function(response, opts) { - Ext.Msg.alert('Error', response.htmlStatus); - } - }); - }); - } - }, +// { +// text: gettext('Convert to template'), +// icon: '/pve2/images/forward.png', +// handler: function() { +// var msg = Ext.String.format(gettext("Do you really want to convert {0} into a template?"), gettext('CT') + ' ' + vmid); +// Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) { +// if (btn !== 'yes') { +// return; +// } +// +// PVE.Utils.API2Request({ +// url: '/nodes/' + nodename + '/lxc/' + vmid + '/template', +// method: 'POST', +// failure: function(response, opts) { +// Ext.Msg.alert('Error', response.htmlStatus); +// } +// }); +// }); +// } +// }, { text: gettext('Console'), icon: '/pve2/images/display.png', diff --git a/www/manager6/lxc/CmdMenu.js b/www/manager6/lxc/CmdMenu.js index 3a1928c9..8758bd4c 100644 --- a/www/manager6/lxc/CmdMenu.js +++ b/www/manager6/lxc/CmdMenu.js @@ -98,26 +98,26 @@ Ext.define('PVE.lxc.CmdMenu', { }); } }, - { - text: gettext('Convert to template'), - icon: '/pve2/images/forward.png', - handler: function() { - var msg = Ext.String.format(gettext("Do you really want to convert {0} into a template?"), gettext('CT') + ' ' + vmid); - Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) { - if (btn !== 'yes') { - return; - } - - PVE.Utils.API2Request({ - url: '/nodes/' + nodename + '/lxc/' + vmid + '/template', - method: 'POST', - failure: function(response, opts) { - Ext.Msg.alert('Error', response.htmlStatus); - } - }); - }); - } - }, +// { +// text: gettext('Convert to template'), +// icon: '/pve2/images/forward.png', +// handler: function() { +// var msg = Ext.String.format(gettext("Do you really want to convert {0} into a template?"), gettext('CT') + ' ' + vmid); +// Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) { +// if (btn !== 'yes') { +// return; +// } +// +// PVE.Utils.API2Request({ +// url: '/nodes/' + nodename + '/lxc/' + vmid + '/template', +// method: 'POST', +// failure: function(response, opts) { +// Ext.Msg.alert('Error', response.htmlStatus); +// } +// }); +// }); +// } +// }, { text: gettext('Console'), icon: '/pve2/images/display.png',