Skip to content

Conversation

@stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Apr 29, 2024

What does this PR do?

We should be using a bound show variable to control the modal. Prior to this PR, we were indirectly controlling the modal by setting the migration ID, but that isn't reliable due to how some of the variables are updated.

This also refactors the modal to pass in the migration instead of a list of migrations and a migration ID because the entire list is not needed inside the modal.

Fixes: #1025

Test Plan

Manual

Screen.Recording.2024-04-29.at.2.44.48.PM.mov

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

@vercel
Copy link

vercel bot commented Apr 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 9:55pm
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 9:55pm
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2024 9:55pm

We should be using a bound show variable to control the modal. Prior to
this PR, we were indirectly controlling the modal by setting the
migration ID via the on close handler, but that event is never triggered
when the modal is closed.

This also refactors the modal to pass in the migration instead of a
list of migrations and a migration ID because the entire list is not
needed inside the modal.
@TorstenDittmann TorstenDittmann merged commit c402adc into main May 14, 2024
@TorstenDittmann TorstenDittmann deleted the fix-1025-close-migration-modal branch May 14, 2024 09:44
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.

🐛 Bug Report: Can't close migration modal

3 participants