Allow users with permission to delete last board

What does this MR do and why?

When there is only 1 board in a group or project, allow users with appropriate permission to delete it, and warn them in the "Are you sure?" modal about what will happen.

Screenshots or screen recordings

Scenario Before After
Delete last board in a group image image
Delete last board in a project image image

How to set up and validate locally

  1. Check out this branch
  2. Create a new group and a new project in that group in the GDK
  3. In the group, visit the Issue boards link
  4. Use the board configuration modal to delete the board
  5. You will see that the Delete board confirmation modal includes an explanation about the creation of a new default Development board in this group.
  6. In the project, visit the Issue boards link
  7. Use the board configuration modal to delete the board
  8. You will see that the Delete board confirmation modal includes an explanation about the creation of a new default Development board in this project.

Related to #499579 (closed), #474922 (closed)

Edited by Chad Lavimoniere

Merge request reports

Loading