poteto / ember-changeset-validations

Validations for ember-changeset
http://bit.ly/ember-changeset-demo
Other
219 stars 99 forks source link

Feature request - add a tracked isValidating flag for properties with async validations #282

Open BryanCrotaz opened 3 years ago

BryanCrotaz commented 3 years ago

Feature request - add a tracked isValidating flag for properties with async validations

This will allow controls to show a spinner before showing a tick or cross icon for example.

snewcomer commented 3 years ago

@BryanCrotaz So right now, isValidating is a function. Is it possible for you to set flags before and after the async validators are run to show the relevant icon?

https://github.com/validated-changeset/validated-changeset/blob/233986781775da24c1c2d91cc7d92e580bcf8ef8/src/index.ts#L712