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 Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
base.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
custom-view.js Added default and custom post views (filters) to the admin sidebar (#1474) 2020-01-30 15:35:36 +00:00
integration.js Switch from embor-browserify to ember-auto-import 2019-01-22 13:09:38 +00:00
invite-user.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
label.js Added labels for Members (#1477) 2020-02-14 15:04:01 +05:30
member.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
nav-item.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
new-user.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
newsletter.js Updated newsletter management for switch to nullable sender_name 2022-04-15 09:43:22 +01:00
offer.js 🐛 Fixed missing validation of offer amounts in the admin panel (#16022) 2023-01-03 09:23:11 +00:00
post.js Added post scheduling Playwright test and loosened time restrictions (#15960) 2022-12-07 17:29:36 +01:00
reset.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
setting.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
setup.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
signin.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
signup.js Update package.json details, rename module to ghost-admin 2016-06-03 16:12:54 +01:00
snippet.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
subscriber.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
tag-settings.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
tier-benefit-item.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
tier.js 🐛 Fixed Hidden error in "Add tier" modal (#15361) 2022-09-13 09:23:54 +01:00
user.js Updated ValidationEngine to support bare native class models (#15567) 2022-10-07 20:13:42 +01:00
webhook.js Added secret handling for webhooks (#13980) 2022-08-23 16:34:32 +01:00