[pve-devel] [PATCH manager 2/3] show qmpstatus if available

Dominik Csapak d.csapak at proxmox.com
Fri Apr 27 12:28:34 CEST 2018


this patch shows the qmpstatus if it is available on the summary
and the normal status if not

this shows things like 'suspended' and 'io-error'

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/panel/GuestStatusView.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/manager6/panel/GuestStatusView.js b/www/manager6/panel/GuestStatusView.js
index 2a17869a..e7dd42ed 100644
--- a/www/manager6/panel/GuestStatusView.js
+++ b/www/manager6/panel/GuestStatusView.js
@@ -32,7 +32,11 @@ Ext.define('PVE.panel.GuestStatusView', {
 	    title: gettext('Status'),
 	    iconCls: 'fa fa-info fa-fw',
 	    printBar: false,
-	    textField: 'status'
+	    multiField: true,
+	    renderer: function(record) {
+		var me = this;
+		return record.data.qmpstatus || record.data.status;
+	    }
 	},
 	{
 	    itemId: 'hamanaged',
-- 
2.11.0





More information about the pve-devel mailing list