in src/Sfx/App/Scripts/ViewModels/TreeNodeViewModel.ts [45:60]
public get isVisibleByBadge(): boolean {
let isVisible = this._node.alwaysVisible ||
_.isUndefined(this.badge) ||
_.isUndefined(this.badge()) ||
!this.badge().badgeClass ||
(this.badge().badgeClass !== BadgeConstants.BadgeUnknown || this._tree.showOkItems) &&
(this.badge().badgeClass !== BadgeConstants.BadgeOK || this._tree.showOkItems) &&
(this.badge().badgeClass !== BadgeConstants.BadgeWarning || this._tree.showWarningItems) &&
(this.badge().badgeClass !== BadgeConstants.BadgeError || this._tree.showErrorItems);
if (this.selected && !isVisible) {
this._tree.selectTreeNode([IdGenerator.cluster()]);
}
return isVisible;
}