Skip to content

Commit

Permalink
Fix the Execute button disabled state when dagit is offline (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow authored and schrockn committed Mar 26, 2019
1 parent 30cc9f6 commit 0d456bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions js_modules/dagit/src/execution/ExecutionStartButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ export default class ExecutionStartButton extends React.Component<

if (websocketStatus !== WebSocket.OPEN) {
return (
<Wrapper role="button" title={"Start pipeline execution"}>
<Icon icon={IconNames.OFFLINE} iconSize={17} />
<Wrapper
disabled={true}
role="button"
title={"The dagit server is offline"}
>
<div style={{ marginRight: 5 }}>
<Icon icon={IconNames.OFFLINE} iconSize={17} />
</div>
Start Execution
</Wrapper>
);
Expand Down

0 comments on commit 0d456bb

Please sign in to comment.