[pve-devel] [PATCH manager 2/3] show qmpstatus if available
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Apr 27 15:53:06 CEST 2018
On 4/27/18 12:28 PM, Dominik Csapak wrote:
> 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;
hmm, maybe always show the normal status and add the qmp status
in parenthesis if one is defined? E.g.:
> running (io-error)
or
> running (warning: io-error)
> + }
> },
> {
> itemId: 'hamanaged',
>
More information about the pve-devel
mailing list