[pve-devel] [PATCH manager 4/5] gui: show Resume button if suspended

Dominik Csapak d.csapak at proxmox.com
Fri Mar 29 10:44:36 CET 2019


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/qemu/Config.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index 4070f544..4f8d2bbe 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -382,7 +382,9 @@ Ext.define('PVE.qemu.Config', {
 		return;
 	    }
 
-	    if (qmpstatus === 'prelaunch' || qmpstatus === 'paused' || qmpstatus === 'suspended') {
+	    var resume = (['prelaunch', 'paused', 'suspended'].indexOf(qmpstatus) !== -1);
+
+	    if (resume || lock === 'suspended') {
 		startBtn.setVisible(false);
 		resumeBtn.setVisible(true);
 	    } else {
-- 
2.11.0





More information about the pve-devel mailing list