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:
parent
aec9d2ece3
commit
09153eaf2b
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user