Skip to content

Commit

Permalink
ui: update titles on time series dashboards
Browse files Browse the repository at this point in the history
Fixes: #18956
Release note (admin ui change): Time series metrics dashboards now show their
own title rather than the generic "Cluster Overview".
  • Loading branch information
couchand committed Feb 15, 2018
1 parent 62e1cf3 commit 5d61fbd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/ui/src/views/cluster/containers/nodeGraphs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,14 @@ class NodeGraphs extends React.Component<NodeGraphsProps, {}> {
},
);

static title() {
return "Cluster Overview";
static title({ params }: { params: { [name: string]: any } }) {
const dashboard = params[dashboardNameAttr];

if (dashboard in dashboards) {
return dashboards[dashboard].label + " Dashboard";
}

return "Cluster Metrics";
}

refresh(props = this.props) {
Expand Down

0 comments on commit 5d61fbd

Please sign in to comment.