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/>';
},
},
{
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);
},
},
],
],
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');
}
},