]> git.proxmox.com Git - pve-manager.git/commitdiff
disable suspend/resume on containers
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 7 Apr 2016 11:29:26 +0000 (13:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 7 Apr 2016 14:57:46 +0000 (16:57 +0200)
since this feature is not really working at the moment,
disable it in the gui

we can reenable it when it works reliably

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/lxc/CmdMenu.js

index d0f09aef7b16e59a72c98932e385a2abf0f49e84..5506c26d8569b9ca86519980a1b2ca952a7f08eb 100644 (file)
@@ -65,29 +65,29 @@ Ext.define('PVE.lxc.CmdMenu', {
                    win.show();
                }
            },
-           {
-               text: gettext('Suspend'),
-               iconCls: 'fa fa-fw fa-pause',
-               disabled: stopped || suspended,
-               handler: function() {
-                   var msg = PVE.Utils.format_task_description('vzsuspend', vmid);
-                   Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
-                       if (btn !== 'yes') {
-                           return;
-                       }
-
-                       vm_command('suspend');
-                   });
-               }
-           },
-           {
-               text: gettext('Resume'),
-               iconCls: 'fa fa-fw fa-play',
-               disabled: !suspended,
-               handler: function() {
-                   vm_command('resume');
-               }
-           },
+//         {
+//             text: gettext('Suspend'),
+//             iconCls: 'fa fa-fw fa-pause',
+//             disabled: stopped || suspended,
+//             handler: function() {
+//                 var msg = PVE.Utils.format_task_description('vzsuspend', vmid);
+//                 Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
+//                     if (btn !== 'yes') {
+//                         return;
+//                     }
+//
+//                     vm_command('suspend');
+//                 });
+//             }
+//         },
+//         {
+//             text: gettext('Resume'),
+//             iconCls: 'fa fa-fw fa-play',
+//             disabled: !suspended,
+//             handler: function() {
+//                 vm_command('resume');
+//             }
+//         },
            {
                text: gettext('Shutdown'),
                iconCls: 'fa fa-fw fa-power-off',