Skip to content

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
- image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Upload a GitLab Ultimate license
  2. Navigate to a project/group => Secure => Policies => New policy
  3. Verify there is no tooltip on non-disabled buttons
  4. Navigate to a type of policy => Create 5+ of one type
  5. Navigate to the project/group => Secure => Policies => New policy
  6. 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.

Related to #411854 (closed)

Edited by Alexander Turinske

Merge request reports

Loading