Add a tooltip for name (#38904)
This commit is contained in:
parent
8ddb5b70c0
commit
db7b6878c1
|
@ -61,7 +61,9 @@ export const TableView = injectI18n(
|
|||
sortable: true,
|
||||
truncateText: true,
|
||||
textOnly: true,
|
||||
render: (value: string, item: { node: InfraWaffleMapNode }) => (
|
||||
render: (value: string, item: { node: InfraWaffleMapNode }) => {
|
||||
const tooltipText = item.node.id === value ? `${value}` : `${value} (${item.node.id})`;
|
||||
return (
|
||||
<NodeContextMenu
|
||||
node={item.node}
|
||||
nodeType={nodeType}
|
||||
|
@ -71,11 +73,14 @@ export const TableView = injectI18n(
|
|||
options={options}
|
||||
popoverPosition="rightCenter"
|
||||
>
|
||||
<EuiToolTip content={tooltipText}>
|
||||
<EuiButtonEmpty onClick={this.openPopoverFor(item.node.pathId)}>
|
||||
{value}
|
||||
</EuiButtonEmpty>
|
||||
</EuiToolTip>
|
||||
</NodeContextMenu>
|
||||
),
|
||||
);
|
||||
},
|
||||
},
|
||||
...options.groupBy.map((grouping, index) => ({
|
||||
field: `group_${index}`,
|
||||
|
|
Loading…
Reference in a new issue