Skip to content

Commit

Permalink
Reconcile some details-panel stuff after the rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
foot authored and paulbellamy committed Jan 19, 2016
1 parent 3d32d10 commit c43abd6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions client/app/scripts/actions/app-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ export function hitEsc() {
type: ActionTypes.CLICK_CLOSE_TERMINAL,
pipeId: controlPipe.id
});
// Dont deselect node on ESC if there is a controlPipe (keep terminal open)
} else if (AppStore.getSelectedNodeId() && !controlPipe) {
AppDispatcher.dispatch({type: ActionTypes.DESELECT_NODE});
}
updateRoute();
}

Expand Down
2 changes: 1 addition & 1 deletion client/app/scripts/components/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default class App extends React.Component {
<div className="app">
{showingDebugToolbar() && <DebugToolbar />}
{showingDetails && <Details nodes={this.state.nodes}
controlStatus={this.state.controlStatus[this.state.selectedNodeId]}
controlStatus={this.state.controlStatus}
details={this.state.nodeDetails} />}

{showingTerminal && <EmbeddedTerminal
Expand Down
6 changes: 3 additions & 3 deletions client/app/scripts/components/details.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export default class Details extends React.Component {
<div className="details">
{details.map((obj, index) => {
return (
<DetailsCard key={obj.id} controlError={this.props.controlError}
controlPending={this.props.controlPending} index={index}
cardCount={details.size} nodes={this.props.nodes} {...obj} />
<DetailsCard key={obj.id} index={index} cardCount={details.size}
nodes={this.props.nodes}
nodeControlStatus={this.props.controlStatus[obj.id]} {...obj} />
);
})}
</div>
Expand Down
2 changes: 1 addition & 1 deletion client/app/scripts/components/node-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default class NodeDetails extends React.Component {
const showSummary = details.metadata !== undefined || details.metrics !== undefined;
const showControls = details.controls && details.controls.length > 0;
const nodeColor = getNodeColorDark(details.rank, details.label_major);
const {error, pending} = (this.props.controlStatus || {});
const {error, pending} = (this.props.nodeControlStatus || {});
const tools = this.renderTools();
const styles = {
controls: {
Expand Down

0 comments on commit c43abd6

Please sign in to comment.