});
var vm_command = function(cmd, params) {
- PVE.Utils.API2Request({
+ Proxmox.Utils.API2Request({
params: params,
url: base_url + '/status/' + cmd,
waitMsgTarget: me,
iconCls: 'fa fa-send-o'
});
- var moreBtn = Ext.create('PVE.button.Button', {
+ var moreBtn = Ext.create('Proxmox.button.Button', {
text: gettext('More'),
menu: { items: [
{
xtype: 'pveMenuItem',
iconCls: 'fa fa-fw fa-file-o',
hidden: caps.vms['VM.Allocate'] ? false : true,
- confirmMsg: PVE.Utils.format_task_description('qmtemplate', vmid),
+ confirmMsg: Proxmox.Utils.format_task_description('qmtemplate', vmid),
handler: function() {
- PVE.Utils.API2Request({
+ Proxmox.Utils.API2Request({
url: base_url + '/template',
waitMsgTarget: me,
method: 'POST',
text: gettext('Shutdown'),
disabled: !caps.vms['VM.PowerMgmt'] || !running,
hidden: template,
- confirmMsg: PVE.Utils.format_task_description('qmshutdown', vmid),
+ confirmMsg: Proxmox.Utils.format_task_description('qmshutdown', vmid),
handler: function() {
vm_command('shutdown');
},
text: gettext('Stop'),
disabled: !caps.vms['VM.PowerMgmt'],
dangerous: true,
- confirmMsg: PVE.Utils.format_task_description('qmstop', vmid),
+ confirmMsg: Proxmox.Utils.format_task_description('qmstop', vmid),
handler: function() {
vm_command("stop", { timeout: 30 });
},
},{
text: gettext('Reset'),
disabled: !caps.vms['VM.PowerMgmt'],
- confirmMsg: PVE.Utils.format_task_description('qmreset', vmid),
+ confirmMsg: Proxmox.Utils.format_task_description('qmreset', vmid),
handler: function() {
vm_command("reset");
},