Ghost/ghost/admin/app/validators
Kevin Ansfield 581f0b34b4
🐛 Fixed missing validation of offer amounts in the admin panel (#16022)
closes https://github.com/TryGhost/Team/issues/2380

- improved offer validation for `amount` field to cover all type/amount cases
- added validate-on-blur to the amount field to match our standard validation behaviour
- added re-validation of the amount field when the type is changed and the amount gets reset
- removed the internal parsing of a decimal trial days entry to an integer so the field value matches what is set internally and we let the user know that partial trial days are not supported

Non-user-facing refactors:
- renamed `_saveOfferProperty` to `_updateOfferProperty` to better reflect what it does
- fixed missing indentation for conditional blocks in the offer template
2023-01-03 09:23:11 +00:00
..
mixins
base.js
custom-view.js
integration.js
invite-user.js
label.js
member.js
nav-item.js
new-user.js
newsletter.js
offer.js
post.js
reset.js
setting.js
setup.js
signin.js
signup.js
snippet.js
subscriber.js
tag-settings.js
tier-benefit-item.js
tier.js
user.js
webhook.js