mirror of https://github.com/linkerd/linkerd2.git
Add top link to sidebar, fix js error (#1508)
- Add a link to Top in the sidebar - Fix a console error caused by having duplicate react keys
This commit is contained in:
parent
3fde755a8f
commit
63be9b1a3d
|
@ -162,6 +162,13 @@ class Sidebar extends React.Component {
|
|||
</PrefixedLink>
|
||||
</Menu.Item>
|
||||
|
||||
<Menu.Item className="sidebar-menu-item" key="/top">
|
||||
<PrefixedLink to="/top">
|
||||
<Icon type="caret-up" />
|
||||
<span>Top</span>
|
||||
</PrefixedLink>
|
||||
</Menu.Item>
|
||||
|
||||
{
|
||||
_.map(_.take(this.state.namespaces, this.state.maxNsItemsToShow), ns => {
|
||||
return (
|
||||
|
|
|
@ -191,7 +191,7 @@ const renderMetaLabels = (title, labels) => {
|
|||
columns={srcDstMetaColumns}
|
||||
dataSource={data}
|
||||
size="small"
|
||||
rowKey="labelVal"
|
||||
rowKey={row => title.replace(" ", "_") + row.labelName + row.labelVal}
|
||||
bordered={false}
|
||||
showHeader={false}
|
||||
pagination={false} />
|
||||
|
|
Loading…
Reference in New Issue