mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 09:22:03 +00:00
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 <d.csapak@proxmox.com>
This commit is contained in:
parent
79bd3ee666
commit
eafa845f86
@ -98,26 +98,26 @@ Ext.define('PVE.lxc.CmdMenu', {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
text: gettext('Convert to template'),
|
// text: gettext('Convert to template'),
|
||||||
icon: '/pve2/images/forward.png',
|
// icon: '/pve2/images/forward.png',
|
||||||
handler: function() {
|
// handler: function() {
|
||||||
var msg = Ext.String.format(gettext("Do you really want to convert {0} into a template?"), gettext('CT') + ' ' + vmid);
|
// 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) {
|
// Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
|
||||||
if (btn !== 'yes') {
|
// if (btn !== 'yes') {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
PVE.Utils.API2Request({
|
// PVE.Utils.API2Request({
|
||||||
url: '/nodes/' + nodename + '/lxc/' + vmid + '/template',
|
// url: '/nodes/' + nodename + '/lxc/' + vmid + '/template',
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
failure: function(response, opts) {
|
// failure: function(response, opts) {
|
||||||
Ext.Msg.alert('Error', response.htmlStatus);
|
// Ext.Msg.alert('Error', response.htmlStatus);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
text: gettext('Console'),
|
text: gettext('Console'),
|
||||||
icon: '/pve2/images/display.png',
|
icon: '/pve2/images/display.png',
|
||||||
|
@ -98,26 +98,26 @@ Ext.define('PVE.lxc.CmdMenu', {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
text: gettext('Convert to template'),
|
// text: gettext('Convert to template'),
|
||||||
icon: '/pve2/images/forward.png',
|
// icon: '/pve2/images/forward.png',
|
||||||
handler: function() {
|
// handler: function() {
|
||||||
var msg = Ext.String.format(gettext("Do you really want to convert {0} into a template?"), gettext('CT') + ' ' + vmid);
|
// 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) {
|
// Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
|
||||||
if (btn !== 'yes') {
|
// if (btn !== 'yes') {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
PVE.Utils.API2Request({
|
// PVE.Utils.API2Request({
|
||||||
url: '/nodes/' + nodename + '/lxc/' + vmid + '/template',
|
// url: '/nodes/' + nodename + '/lxc/' + vmid + '/template',
|
||||||
method: 'POST',
|
// method: 'POST',
|
||||||
failure: function(response, opts) {
|
// failure: function(response, opts) {
|
||||||
Ext.Msg.alert('Error', response.htmlStatus);
|
// Ext.Msg.alert('Error', response.htmlStatus);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
text: gettext('Console'),
|
text: gettext('Console'),
|
||||||
icon: '/pve2/images/display.png',
|
icon: '/pve2/images/display.png',
|
||||||
|
Loading…
Reference in New Issue
Block a user