New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dance party: Don't allow song to be changed while running #25932
Dance party: Don't allow song to be changed while running #25932
Conversation
Dance party has a kind of pre-run state in which the user has pressed Run, but it's still loading assets, and so we need to disable the song selection during that state too.
…-running Conflicts: apps/src/dance/Dance.js
apps/src/dance/Dance.js
Outdated
@@ -395,6 +397,7 @@ Dance.prototype.runButtonClick = async function () { | |||
this.studioApp_.toggleRunReset('reset'); | |||
// Safe to allow normal run/reset behavior now | |||
this.runIsStarting = false; | |||
getStore().dispatch(setRunIsStarting(false)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we still need this.runIsStarting
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I can use redux now. Good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I downloaded the branch to check things out. It looks like the song dropdown is disabled the entire time the song is running, which seems reasonable but was not my understanding from the PR description?
Code changes LGTM, but should probably come with a short test.
Oh, the description is an extra detail in addition to the title. I'll update :) |
+1 for adding a short regression test! |
UI test coverage added. |
This disables changing song while the dance party level is running.
Dance party has a kind of pre-run state in which the user has pressed Run, but it's still loading assets, and so we disable the song selection during that state too.
Fixes code-dot-org/dance-party#190.