-
Notifications
You must be signed in to change notification settings - Fork 697
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
dashboard: add page reload on successful save #7461
dashboard: add page reload on successful save #7461
Conversation
While this would certainly work with the least amount of code, the intent of the original design is to keep everything as dynamic as possible. This action will interrupt the keep-alive sessions collecting data. I think this is fine for now, though perhaps there is a less invasive way we can think of to let the user know the action was succesful. Any opinion? :) |
Hello, we could also display a success message in a HTML message area, or make the save button vanish upon successful save, e.g. only reloading the area with the buttons? I just replicated the behavior of the Restore Defaults button with the full reload of the whole page. |
Yes, the restore defaults was the only exception here, although in theory only the widget positions and width/height need to update with the current logic, this has a lower priority.
If you can spare the time to propose something in this PR that'd be great - otherwise I'll add it to my todo list and merge this one for the time being. |
Sure I can try. |
…ces feedback on click. The button is unlocked and the spinner is hidden upon success or failure. On success, the button is hidden.
@swhite2 What do you think of this idea? I think it fits to the general responsiveness of the new dashboard. Though, if it's not what you want, I'm open to change things, or pass you the torch on this. ^^ |
@Monviech In terms of styling this looks really nice :) I would invert the action and timeout, so the save action starts immediately. The spinner would be active while this happens, and after it completes add a small artificial delay (perhaps 500ms) instead (regardless of success/failure state). Users are quick and with this we can't guarantee the save action will fire if the user navigates to somewhere else within the delay period. |
Thanks for the feedback. Yeah that makes sense. I cant continue here until next week. If you need to work on the file I suggest you merge or close the PR, and we can fix the action and timeout sequence later. |
I'll change it in this PR in a bit and merge it after. Many thanks for the initial code. FWIW, the dashboard is under active development so if you have any other feedback or changes, all welcome :) |
@Monviech Got a bit carried away with the styling part here.. sorry about that ;) |
@swhite2 Hey it looks interesting and like you had fun. :D Im going to try it out on the weekend. Thanks ^^ |
When trying out the new dashboard, the save button didn't give me any feedback on successful save. So I have added a page reload.