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>
|
</PrefixedLink>
|
||||||
</Menu.Item>
|
</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 => {
|
_.map(_.take(this.state.namespaces, this.state.maxNsItemsToShow), ns => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -191,7 +191,7 @@ const renderMetaLabels = (title, labels) => {
|
||||||
columns={srcDstMetaColumns}
|
columns={srcDstMetaColumns}
|
||||||
dataSource={data}
|
dataSource={data}
|
||||||
size="small"
|
size="small"
|
||||||
rowKey="labelVal"
|
rowKey={row => title.replace(" ", "_") + row.labelName + row.labelVal}
|
||||||
bordered={false}
|
bordered={false}
|
||||||
showHeader={false}
|
showHeader={false}
|
||||||
pagination={false} />
|
pagination={false} />
|
||||||
|
|
Loading…
Reference in New Issue