frzyc / genshin-optimizer

An Artifact optimizer for Genshin Impact.
https://frzyc.github.io/genshin-optimizer/
MIT License
777 stars 228 forks source link

Update Team removal modal to selectable loadouts #2122

Closed frzyc closed 4 months ago

frzyc commented 4 months ago

Describe your changes

I noticed that people would delete the team caused by the v10 migration(but the loadouts would still remain). and if people adopt importing of teams, they would have 4 new loadouts from importing that team. deleting this "Team" would mean deleting the 4 loadouts separately, then the team.

Add a modal so user can select loadouts to delete when deleting a team.

Depends on changes from #2108

Issue or discord link

Testing/validation

Screenshot 2024-05-14 132939

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

github-actions[bot] commented 4 months ago

[frontend] [Tue May 14 17:33:43 UTC 2024] - Deployed 2d1f8c50d3462822c036dbcca462afe9f8309a20 to https://genshin-optimizer-prs.github.io/pr/2122/frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Tue May 14 17:41:45 UTC 2024] - Deployed 539b917742ddb20c606d224d70e0b702ed4d1058 to https://genshin-optimizer-prs.github.io/pr/2122/frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Wed May 15 04:27:52 UTC 2024] - Deployed 1dbdb613c2c97e6882e59dcc658ed50574c5e57b to https://genshin-optimizer-prs.github.io/pr/2122/frontend (Takes 3-5 minutes after this completes to be available)

[Wed May 15 04:35:55 UTC 2024] - Deleted deployment