]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/dc/NodeView.js
ui: realm: clarify that the sync jobs really are for the realm
[pve-manager.git] / www / manager6 / dc / NodeView.js
index f1d6ed154616fab5f349cdbb758c9902df1dd4b4..ff674233322995c3bdf0a64f93e9982ea63e67fd 100644 (file)
@@ -25,7 +25,7 @@ Ext.define('PVE.dc.NodeView', {
            sortable: true,
            dataIndex: 'online',
            renderer: function(value) {
-               var cls = (value)?'good':'critical';
+               var cls = value?'good':'critical';
                return '<i class="fa ' + PVE.Utils.get_health_icon(cls) + '"><i/>';
            },
        },
@@ -79,17 +79,15 @@ Ext.define('PVE.dc.NodeView', {
        {
            type: 'up',
            handler: function() {
-               var me = this.up('grid');
-               var height = Math.max(me.getHeight()-50, 250);
-               me.setHeight(height);
+               let view = this.up('grid');
+               view.setHeight(Math.max(view.getHeight() - 50, 250));
            },
        },
        {
            type: 'down',
            handler: function() {
-               var me = this.up('grid');
-               var height = me.getHeight()+50;
-               me.setHeight(height);
+               let view = this.up('grid');
+               view.setHeight(view.getHeight() + 50);
            },
        },
     ],
@@ -111,14 +109,15 @@ Ext.define('PVE.widget.ProgressBar', {
     ],
 
     setValue: function(value) {
-       var me = this;
+       let me = this;
+
        me.callParent([value]);
 
        me.removeCls(['warning', 'critical']);
 
        if (value > 0.89) {
            me.addCls('critical');
-       } else if (value > 0.59) {
+       } else if (value > 0.75) {
            me.addCls('warning');
        }
     },