ember-changeset-validations icon indicating copy to clipboard operation
ember-changeset-validations copied to clipboard

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

Open BryanCrotaz opened this issue 4 years ago • 1 comments

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.

BryanCrotaz avatar Feb 08 '21 16:02 BryanCrotaz

@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

snewcomer avatar Feb 12 '21 04:02 snewcomer