Skip to content

Commit

Permalink
Identify actions from "the future"
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Aug 9, 2016
1 parent 3f5c6c1 commit 5198c1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/LogMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export default class LogMonitor extends Component {
skippedActionIds,
stagedActionIds,
computedStates,
currentStateIndex,
select,
expandActionRoot,
expandStateRoot
Expand All @@ -195,6 +196,7 @@ export default class LogMonitor extends Component {
skippedActionIds,
stagedActionIds,
computedStates,
currentStateIndex,
select,
expandActionRoot,
expandStateRoot,
Expand Down
5 changes: 3 additions & 2 deletions src/LogMonitorEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default class LogMonitorEntry extends Component {
action: PropTypes.object.isRequired,
actionId: PropTypes.number.isRequired,
select: PropTypes.func.isRequired,
inFuture: PropTypes.bool,
error: PropTypes.string,
onActionClick: PropTypes.func.isRequired,
collapsed: PropTypes.bool,
Expand Down Expand Up @@ -110,9 +111,9 @@ export default class LogMonitorEntry extends Component {
}

render() {
const { actionId, error, action, state, collapsed } = this.props;
const { actionId, error, action, state, collapsed, inFuture } = this.props;
const styleEntry = {
opacity: collapsed ? 0.5 : 1,
opacity: (collapsed || inFuture) ? 0.5 : 1,
cursor: (actionId > 0) ? 'pointer' : 'default'
};

Expand Down
3 changes: 3 additions & 0 deletions src/LogMonitorEntryList.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default class LogMonitorEntryList extends Component {
computedStates: PropTypes.array,
stagedActionIds: PropTypes.array,
skippedActionIds: PropTypes.array,
currentStateIndex: PropTypes.number,

select: PropTypes.func.isRequired,
onActionClick: PropTypes.func.isRequired,
Expand All @@ -27,6 +28,7 @@ export default class LogMonitorEntryList extends Component {
theme,
actionsById,
computedStates,
currentStateIndex,
select,
skippedActionIds,
stagedActionIds,
Expand All @@ -52,6 +54,7 @@ export default class LogMonitorEntryList extends Component {
state={state}
previousState={previousState}
collapsed={skippedActionIds.indexOf(actionId) > -1}
inFuture={i > currentStateIndex}
error={error}
expandActionRoot={expandActionRoot}
expandStateRoot={expandStateRoot}
Expand Down

0 comments on commit 5198c1b

Please sign in to comment.