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

joystick-config: Fix warning about manual-control message not being supported #1457

Merged

Conversation

rafaellehmkuhl
Copy link
Member

It was mistakenly warning about the MANUAL_CONTROL message not being supported when it failed to fetch the information from BlueOS.

Fix #1067

…upported

It was mistakenly warning about the `MANUAL_CONTROL` message not being supported when it failed to fetch the information from BlueOS.
@rafaellehmkuhl
Copy link
Member Author

I have put this one in draft mode because besides the logic being now correct, the conditional rendering for the warning slot is wrong. Will fix that and reopen.

… of info and warning slots

As it was, once the component was rendered, the existence of info and warning slots would never change.

We had a case where the joystick panel was initiated without a warning, but once an external API was consulted, the component tried to show the warning (with a change in a `v-if` for the slot), but the panel never rendered the warning, as it was not reactive.
@rafaellehmkuhl rafaellehmkuhl marked this pull request as ready for review November 22, 2024 17:26
@rafaellehmkuhl
Copy link
Member Author

@ArturoManzoli PR ready. The root cause of this was that the warning slot of the ExpansiblePanel.vue was not reactive, so even if we activated the warning from the joystick configuration page (which always had some delay, as it was fetching the information from BlueOS), the warning would never appear, as it wasn't being re-rendered.

@ArturoManzoli ArturoManzoli merged commit 53ceeb0 into bluerobotics:master Nov 26, 2024
10 checks passed
@rafaellehmkuhl rafaellehmkuhl deleted the fix-joystick-warning-message branch November 26, 2024 12:40
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.

Warning in Joystick page about old BlueOS/M2R is sometimes appearing, incorrectly
2 participants