]> git.proxmox.com Git - pve-manager.git/commitdiff
show qmpstatus if available
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 30 Apr 2018 09:00:34 +0000 (11:00 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 30 Apr 2018 09:02:08 +0000 (11:02 +0200)
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>
www/manager6/panel/GuestStatusView.js

index 2a17869a30878839a944d6c417710c79efe3451f..2a9198cf38387eba2257be76db89df3e08e5fbe6 100644 (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',