Skip to content
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

Disable run button when program is running #23

Open
uncomputable opened this issue May 14, 2024 · 1 comment · Fixed by #26
Open

Disable run button when program is running #23

uncomputable opened this issue May 14, 2024 · 1 comment · Fixed by #26

Comments

@uncomputable
Copy link
Owner

uncomputable commented May 14, 2024

A program such as the hash loop takes a long time to execute. Spam-clicking the run button creates a long queue of executions that the user must wait for to finish. We should lock the run button until the execution finishes, the prevent the buildup of such a queue.

We must use something like https://github.com/Jinxit/leptos_workers (web workers) to move the execution of Simfony code into a separate "thread" while keeping the remaining UI responsive. async does not work.

@uncomputable uncomputable changed the title Green flash on failure Success feedback on failure May 15, 2024
@uncomputable uncomputable reopened this May 15, 2024
@uncomputable
Copy link
Owner Author

Clarified and reopened the issue.

@uncomputable uncomputable changed the title Success feedback on failure Disable run button when program is running Oct 1, 2024
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 a pull request may close this issue.

1 participant