]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/Utils.js
improve tree/grid icons
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 3 Nov 2017 08:51:37 +0000 (09:51 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 14 Nov 2017 12:27:07 +0000 (13:27 +0100)
commit4dbc64a786483915c7cbd3d589422e5f317d6b64
tree7591c963019566b8301bbf0cb98b5d17bdc42faa
parent2fa8270b216e2d2b4b3f461a0cfb1ffa0c98cf3a
improve tree/grid icons

we improve the icons in the tree and the resource grid by
differentiating between cluster online/offline status and no rrd data

when we have no rrd data from a node/storage, instead of showing a
red x (which is scary) even if the node is reachable by corosync (which
confused quite a bit of people, because we show all nodes as online in
the datacenter summary), we show the node/storage with a '?'

this signals that something is wrong with this node, even if we can
reach it via cluster methods

this rewrite of the logic includes a refactoring of the method
of getting the icon, because we want the same icons in the tree and the
grid, and an optimization on how we use the css classes
(introducing a x-grid-custom-icon class)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/Utils.js
www/manager6/tree/ResourceTree.js