Update check on min quantity for CI Minutes

What does this MR do and why?

Describe in detail what your merge request does and why.

Related to #366430 (closed).

This MR updates the check on the add-ons purchase quantity to ensure it is an integer and it's >= 1. The validation is reflected in the updated error message. This applies to Storage purchases as well.

Note that, Storage purchases, an error message appears because when changing the quantity, we make a call, and that call fails. For that, there's a follow-up MR (!105799 (merged)).

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Valid Invalid Invalid
CI Minutes
Screenshot_2022-12-01_at_17.09.21 Screenshot_2022-12-02_at_15.33.54 Screenshot_2022-12-02_at_15.33.59
Storage
Screenshot_2022-12-02_at_10.51.33 Screenshot_2022-12-02_at_10.51.50

How to set up and validate locally

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

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Angelo Gulina

Merge request reports

Loading