Can't delete labels if alerts are disabled
Summary
When removing labels, an alert appears asking if you really want to delete this label. And if you put a checkbox that you don't want to view this alert next time, because deleting a lot of labels could be frustrating, delete button just stop working.
Steps to reproduce
- Create a new project and navigate to project > issues > labels
- Generate the default set of labels
- Delete a label, accept the choice to delete in the popup dialog
- Delete another label, accept that dialogs should no longer be displayed
- Attempt to delete another label
Expected behavior
It should be possible to continue deleting labels
Actual behavior
Turning off the dialogs means that the confirmation will no longer be displayed and labels cannot be deleted. The browser must be restarted to forget this preference
Relevant logs and/or screenshots
N/A
Output of checks
Results of GitLab application Check
gitlab-ce~3293941
Results of GitLab environment info
gitlab-ce~3293941
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Edited by Coung Ngo