[pve-devel] [PATCH manager 4/4] disable suspend/resume on containers

Dominik Csapak d.csapak at proxmox.com
Thu Apr 7 13:29:26 CEST 2016


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 at proxmox.com>
---
 www/manager6/lxc/CmdMenu.js | 46 ++++++++++++++++++++++-----------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/www/manager6/lxc/CmdMenu.js b/www/manager6/lxc/CmdMenu.js
index d0f09ae..5506c26 100644
--- a/www/manager6/lxc/CmdMenu.js
+++ b/www/manager6/lxc/CmdMenu.js
@@ -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',
-- 
2.1.4





More information about the pve-devel mailing list