uselagoon / lagoon-ui

Apache License 2.0
6 stars 2 forks source link

Fix: Fixes variable deletion btn & updates the delete modal btn text to confirm successful deletion #242

Closed CGoodwin90 closed 1 month ago

CGoodwin90 commented 2 months ago

Currently when clicking the delete icon for a variable a permission check is run but the delete modal is not opened, subsequent clicks open the modal. This updates the DeleteVariable component to hande the permission check and open the modal if permitted.

This also updates the delete modal button text to show 'Success' on successful deletion to confirm the deletion has run successfully. Also cleans up the loading state for environment and project variable tabs.

closes https://github.com/uselagoon/lagoon-ui/issues/239, closes https://github.com/uselagoon/lagoon-ui/issues/240