Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #820 from 18F/ssw-route-rows
Browse files Browse the repository at this point in the history
Adding bordered styles to panelRows and adding link to manage routes
  • Loading branch information
Marco Segreto authored Dec 14, 2016
2 parents 6fa2aa9 + d50652c commit ab3de8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions static_src/components/routes_panel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ export default class RoutesPanel extends React.Component {
}

renderRoutes(routes) {
let content = <PanelRow><h4>No routes</h4></PanelRow>;
let content = <PanelRow styleClass="bordered"><h4>No routes</h4></PanelRow>;

if (routes && routes.length) {
content = routes.map((route) =>
<PanelRow key={ route.guid + route.app_guid }>
<PanelRow styleClass="bordered" key={ route.guid + route.app_guid }>
<Route route={ route } appGuid={ this.state.appGuid} />
</PanelRow>
);
Expand All @@ -172,6 +172,7 @@ export default class RoutesPanel extends React.Component {
<PanelGroup>
<PanelHeader>
<h3>Bound routes</h3>
<span>Manage routes in {this.spaceLink}</span>
</PanelHeader>
{ this.renderRoutes(this.state.boundRoutes) }
</PanelGroup>
Expand Down

0 comments on commit ab3de8a

Please sign in to comment.