show qmpstatus if available

this patch shows the qmpstatus if it is available on the summary in
parenthesis

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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-04-30 11:00:34 +02:00 committed by Thomas Lamprecht
parent aec9d2ece3
commit 09153eaf2b

View File

@ -32,7 +32,16 @@ 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;
var text = record.data.status;
var qmpstatus = record.data.qmpstatus;
if (qmpstatus && qmpstatus !== record.data.status) {
text += ' (' + qmpstatus + ')';
}
return text;
}
},
{
itemId: 'hamanaged',