Skip to content

i15-1: Disable plan buttons when a plan is running#32

Open
JamesDoingStuff wants to merge 2 commits intoDiamondLightSource:mainfrom
JamesDoingStuff:jg/disable-plan-buttons-when-running
Open

i15-1: Disable plan buttons when a plan is running#32
JamesDoingStuff wants to merge 2 commits intoDiamondLightSource:mainfrom
JamesDoingStuff:jg/disable-plan-buttons-when-running

Conversation

@JamesDoingStuff
Copy link
Copy Markdown

RunPlanButtons query the workerState and are disabled unless it returns IDLE. I've tried to make this conflict as little as possible with #29

Changes the MSW mocks so that a PUT to /api/worker/task also causes the next 10 GETs to /api/worker/state to return RUNNING instead of IDLE. Not sure if this is something to keep in long-term (especially if tests get added) but it demonstrates the effect of this PR nicely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant