-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cura profile upload works even when no file is selected #1893
Comments
This is the fix that I am porting to cura.js: OctoPrint/OctoPrint-Slic3r@dbd31ed |
This fixes OctoPrint#1893 . Also, only bind click to the "Confirm" button once instead of binding and unbinding it for each file. Binding it just once seems cleaner.
* Use click data-bind for submit button instead of manual click binding * Keep metadata synchronized (otherwise changing identifier, name, description, overwrite or default flag after adding a file does absolutely nothing) * Disable submit button and fields when no file is selected. * Disable submit button (and show spinned) when request is in progress. Related to #1893
I merged your PR manually via a cherry-pick, see the above commit. Additionally I did some further refactoring because I noticed that the metadata of an uploaded profile didn't update properly after selecting the file to upload. I also made it so the "Confirm" button is actually disabled until you select a file to upload, and swapped out your manual click binding on the file select element with a knockout data bind (which now is possible thanks to your earlier refactoring). All in all I think that should be pretty solid now. I briefly looked into completely going away from using the Anyhow, this is already on Thanks! |
What were you doing?
This is what the screen looks like right before step 7. The Confirm button on this screen works:
What did you expect to happen and what happened instead?
I expected the Confirm button not to work when there is no profile selected.
Branch & Commit or Version of OctoPrint
OctoPrint/devel
OctoPrint 1.3.2.post110+gd1d94624 (HEAD branch)
I have read the FAQ.
I'm working on the solution to this in https://github.com/OctoPrint/OctoPrint-Slic3r . I'll solve it there and then port a similar fix for the cura plugin and send a PR.
The text was updated successfully, but these errors were encountered: