Merge 5be35ea2d4 into de13e2329b
This commit is contained in:
commit
2e6740b11a
@ -1090,21 +1090,17 @@ Ext.define('PVE.node.StatusView', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (objValue.disabled === true) {
|
if (objValue.disabled === true) {
|
||||||
this.hide();
|
|
||||||
this.setPrintBar(false);
|
this.setPrintBar(false);
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
this.show();
|
|
||||||
|
|
||||||
const upsKeys = Object.keys(objValue).filter(function(k) {
|
const upsKeys = Object.keys(objValue).filter(function(k) {
|
||||||
return objValue[k] && typeof objValue[k] === 'object' && !Array.isArray(objValue[k]);
|
return objValue[k] && typeof objValue[k] === 'object' && !Array.isArray(objValue[k]);
|
||||||
});
|
});
|
||||||
if (!upsKeys.length) {
|
if (!upsKeys.length) {
|
||||||
this.hide();
|
|
||||||
this.setPrintBar(false);
|
this.setPrintBar(false);
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
this.show();
|
|
||||||
this.setPrintBar(true);
|
this.setPrintBar(true);
|
||||||
|
|
||||||
function formatRuntime(seconds) {
|
function formatRuntime(seconds) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user