mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-03 13:26:28 +00:00
info widget: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
fc0a18e6c2
commit
713a7f9379
@ -63,11 +63,8 @@ Ext.define('Proxmox.widget.Info', {
|
|||||||
var label = me.getComponent('label');
|
var label = me.getComponent('label');
|
||||||
label.update(Ext.apply(label.data, { title: me.title, usage: text }));
|
label.update(Ext.apply(label.data, { title: me.title, usage: text }));
|
||||||
|
|
||||||
if (usage !== undefined &&
|
if (usage !== undefined && me.printBar && Ext.isNumeric(usage) && usage >= 0) {
|
||||||
me.printBar &&
|
let progressBar = me.getComponent('progress');
|
||||||
Ext.isNumeric(usage) &&
|
|
||||||
usage >= 0) {
|
|
||||||
var progressBar = me.getComponent('progress');
|
|
||||||
progressBar.updateProgress(usage, '');
|
progressBar.updateProgress(usage, '');
|
||||||
if (usage > me.criticalThreshold) {
|
if (usage > me.criticalThreshold) {
|
||||||
progressBar.removeCls('warning');
|
progressBar.removeCls('warning');
|
||||||
|
Loading…
Reference in New Issue
Block a user