-
Couldn't load subscription status.
- Fork 8
Description
Description:
Issue: After a successful provisioning process, the UI does not display a "Next" button to load the returned URL. Instead, a "Cancel" button is shown.
Expected Behavior: Upon successful provisioning, the UI should display a "Next" button that allows the user to proceed to the loaded URL. (https://youtu.be/AdCsX7Ni6Jc)
Actual Behavior: The UI displays a "Cancel" button, which seemingly doesn't have a clear function in this context.
Steps to Reproduce:
- Install the ESPHome firmware from the provided link (https://esphome.github.io/esp-web-tools/).
- Use improv-wifi-sdk (V 1.4.0) package in your project.
- Initiate the provisioning process.
- After successful provisioning, a "Cancel" button appears instead of a "Next" button.
Potential Root Cause:
The _renderImprovProvisioned() method in provision-dialog.ts is being triggered before the nextUrl is set in ble.ts. This means the UI attempts to render the dialog without the necessary information to display the "Next" button and URL.