core
core copied to clipboard
[Admin] Hide delete team button when not possible
- Register and log in
- Click "Delete team"
- Correctly enter the prompted team name
- Nothing happens when clicking "Delete"
- Pressing enter key works
I suspect this is related to the "can't delete your last team" error which shows when using the enter key.
I think this error should show as a hint below the "Delete team" button. It's better UX not to open the modal, enter the team name and then realise you can't delete the team.
Thanks for the feedback, will iterate and improve the UX soon.
I had created a second Team as a test and then wanted to delete it (so it was not my final Team) - opening the modal and clicking the delete button would not work (but the button disabled correctly if I edited the Team name in the input field) - but the Enter key trick worked thanks @bradley-varol
Sorry it took me so long.
The button is now hidden with an explanation on why you cannot remove the team:
I also fixed the non-clickable button, thanks for reporting 🙏