Disable new schedule button when plan limit is reached
What does this MR do and why?
When plan limit is reached, disable New schedule
button and show info alert with information for better UX.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
How to set up and validate locally
- Mock the planLimit in
app/assets/javascripts/ci/pipeline_schedules/components/pipeline_schedules.vue
schedules query to something lower than your current pipeline schedule count. - Test that New schedule button is disabled
- Test that button works when limit is not reached
Related to #377977 (closed)
Edited by Payton Burdette