Skip to content

Conversation

@EvanHerman
Copy link
Contributor

@EvanHerman EvanHerman commented Apr 7, 2025

Refactor the deactivation modal so that we are not sending a network request before user submits data. This PR now hardcodes the choices data that is retrieved from our GET request on initial themes page load.

If the user had previously submit the form, they can submit it again, but our API will return a 500 error and the theme will be deactivated as expected. So there is no concern about showing this modal multiple times to the same user. The data will only be logged once.

@EvanHerman EvanHerman added the [Type] Enhancement Something new that adds functionality label Apr 7, 2025
@EvanHerman EvanHerman added this to the 1.8.14 milestone Apr 7, 2025
@EvanHerman EvanHerman requested a review from jrtashjian April 7, 2025 15:45
@EvanHerman EvanHerman self-assigned this Apr 7, 2025
@EvanHerman EvanHerman merged commit 7152c8b into master Apr 7, 2025
10 checks passed
@EvanHerman EvanHerman deleted the refactor-deactivation-modal branch April 7, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement Something new that adds functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants