This repository was archived by the owner on Apr 15, 2020. It is now read-only.
v0.3.0
- Reshaped config to be organised by
prompts[actionName][type]so defining your own prompts is generally much less typing - Added optional
onConfirm,onSuccessandonErrorhooks that can be passed into actions.- onConfirm will fire immediately after an action is confirmed, or immediately when an action is called if there is no confirmation. It is passed the same object that the action was passed.
- onSuccess will fire immediately after the action function has succeeded, before any success prompts or success actions are called. It is passed the result of the action function.
- onError will fire immediately after the action has failed, before any error prompts are called. It is passed the result of the action function.
- Config no longer throws an error when
afterActionandsuccessActionsare not set - Re-organised and renamed router files
- The
entityEditorandentityEditorRouterprops can now be renamed by settingentityEditorProporentityEditorRouterPropin theEntityEditorListorEntityEditorItemconfig obects - The promise returned from actions now has a payload of
actionProps - Re worded saveNew confirmation message
- Split modal and modal content components
- Allowed for all modal class names to be overridden by props
- Docs: Moved dogs routes to dogs folder