Closed SnazzyPanda closed 10 months ago
I noticed, while using this change with a larger mod list, that displaying the confirmation seems to try to scroll until the mod you are trying to delete is at the bottom of the window. I am not sure what is causing that to happen or how to go about fixing that at this time.
I thought it might be related to immediately creating the modal within the for loop generating the rows, but moving it outside of the for loop did not seem to fix it.
I think I am out of possible ideas on how to fix the scroll issue, so, unless someone else has ideas, I think this is as far as I go on this pull.
This adds a confirmation modal/dialogue box to inform users that the action cannot be undone and to have them confirm that they want to delete the mod.
This should help prevent accidental deletions by users.
We may want to do some additional tweaking, such as changing button colors to help differentiate them.