diff --git a/public/scripts/components/NodeDetailsComponent.js b/public/scripts/components/NodeDetailsComponent.js index fe12e6e..b716481 100644 --- a/public/scripts/components/NodeDetailsComponent.js +++ b/public/scripts/components/NodeDetailsComponent.js @@ -86,8 +86,17 @@ class NodeDetailsComponent extends Component { // Use persisted active tab from the view model, default to 'status' const activeTab = (this.viewModel && typeof this.viewModel.get === 'function' && this.viewModel.get('activeTab')) || 'status'; logger.debug('NodeDetailsComponent: Rendering with activeTab:', activeTab); - + + // Build labels bar (above tabs) + const labelsObj = (nodeStatus && nodeStatus.labels) ? nodeStatus.labels : null; + const labelsBar = (labelsObj && Object.keys(labelsObj).length) + ? `