Update add policy button to be disabled at limit
What does this MR do and why?
Update add policy button to be disabled at limit
- only 5 policiees are allowed to be created of each type at any time
- disable add policy button for a policy type if the limit is reached
- add tooltip
Changelog: changed
EE: true
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
- |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Navigate to a project/group => Secure => Policies => New policy
- Verify there is no tooltip on non-disabled buttons
- Navigate to a type of policy => Create 5+ of one type
- Navigate to the project/group => Secure => Policies => New policy
- Verify there is a tooltip on disabled buttons
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #411854 (closed)
Edited by Alexander Turinske