]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
do not hide ceph on dashboard if the api call fails
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 21 Dec 2016 10:48:46 +0000 (11:48 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 22 Dec 2016 09:15:37 +0000 (10:15 +0100)
with this patch, we do not hide the ceph status anymore if the api call
fails (too slow, e.g.) as long as we showed it at least one time

also, we only stop the updates if we never successfully got the status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/dc/Health.js

index fbb74a60ebf7d20a62773cd58d8b9d057006a911..78d8922d793113988fc3843c0a20544406950ccf 100644 (file)
@@ -67,8 +67,13 @@ Ext.define('PVE.dc.Health', {
        var me = this;
        var cephstatus = me.getComponent('ceph');
        if (!success || records.length < 1) {
+
+           // if ceph status is already visible
+           // dont stop to update
+           if (cephstatus.isVisible()) {
+               return;
+           }
            me.cepherrors++;
-           cephstatus.setVisible(false);
 
            // after 3 unsuccessful tries of
            // /nodes/localhost/ceph/status