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.
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