diff --git a/client/app/scripts/components/topology-options.js b/client/app/scripts/components/topology-options.js index a749317a5..301324a37 100644 --- a/client/app/scripts/components/topology-options.js +++ b/client/app/scripts/components/topology-options.js @@ -7,10 +7,15 @@ const TopologyOptions = React.createClass({ renderAction: function(action, option, topologyId) { return ( - + ); }, + /** + * transforms a list of options into one sidebar-item. + * The sidebar text comes from the active option. the actions come from the + * remaining items. + */ renderOption: function(items) { let activeText; let activeValue; @@ -41,7 +46,7 @@ const TopologyOptions = React.createClass({ }, this); return ( -
+
{activeText} {actions}