Table-mode: fixes processes view if internet is present.

- Also adds tooltip for id label column (container/process name)
This commit is contained in:
Simon Howe
2016-08-02 11:17:40 +02:00
parent 3e4ec1dc61
commit 925905bc43
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ function renderIdCell(props) {
const showSubLabel = Boolean(props.pseudo);
return (
<div className="nodes-grid-id-column">
<div title={props.label} className="nodes-grid-id-column">
<div style={iconStyle}><i className="fa fa-square" /></div>
<div className="truncate">
{props.label} {showSubLabel &&

View File

@@ -75,7 +75,7 @@ function getValueForSortBy(sortBy) {
function getMetaDataSorters(nodes) {
// returns an array of sorters that will take a node
return _.get(nodes, [0, 'metadata'], []).map((field, index) => node => {
const nodeMetadataField = node.metadata[index];
const nodeMetadataField = node.metadata && node.metadata[index];
if (nodeMetadataField) {
if (isNumberField(nodeMetadataField)) {
return parseFloat(nodeMetadataField.value);