core icon indicating copy to clipboard operation
core copied to clipboard

[Admin] Hide delete team button when not possible

Open bradley-varol opened this issue 1 year ago • 1 comments

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

bradley-varol avatar Jul 24 '24 19:07 bradley-varol

Thanks for the feedback, will iterate and improve the UX soon.

atinux avatar Jul 30 '24 15:07 atinux

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

darren-flume avatar Aug 23 '24 06:08 darren-flume

Sorry it took me so long.

The button is now hidden with an explanation on why you cannot remove the team: CleanShot 2024-09-05 at 15 44 14

I also fixed the non-clickable button, thanks for reporting 🙏

atinux avatar Sep 05 '24 13:09 atinux