Vulcan/packages/vulcan-lib/lib/modules
Erik Schannen c3f33cb7e0 Changes to SmartForm behaviour
- Moved UI portions of FormComponent to FormComponentInner.jsx in vulcan-ui-bootstrap

 - Added user alert when the user navigates to another route while there are unsaved changed in the form (disabled by default)

 - Added setting forms.warnUnsavedChanges and SmartForm property warnUnsavedChanges to enable user alert

 - Added optional Revert button in FormSubmits to allow the user to discard any changes to the form; this is activated by passing a "revertCallback" property to SmartForm (which can be empty: () => {})

 - Added two functions that form components can access in the child context: refetchForm() to refetch the document from the database (in case it was updated by a background process), isChanged() to determine if there are any unsaved changes

 - For any phrases I have added to en_US.js I also added it to es_ES.js and fr_FR.js with the comment // TODO: translate

 - Updated Form.clearForm and Form.mutationSuccessCallback so that the user can continue working on the document after submitting it

 - The form now scrolls the flash message into view when a submit results in errors

 - Fixed bugs in FormComponent.shouldComponentUpdate() and Form.getDocument()

 - Fixed bug in FormComponent.handleChange() - number fields could not be cleared, only set to 0

 - Fixed a bug in FormComponent.getValue() - it returned the initial value of a checkbox even after it was set to false, and a number even after it was set to 0
2018-05-08 20:09:42 -04:00
..
admin.js Make admin dashboard extendable 2017-06-17 15:25:41 +09:00
apollo.js add graphQLEndpointURL setting to make endpoint URL configurable (to use different GraphQL back-end for example) 2018-02-07 10:29:02 +09:00
callbacks.js Fix linting 2018-01-25 15:03:03 -06:00
collections.js Add MongoDB aggregation to Collections 2018-04-21 11:40:56 +02:00
components.js Changes to SmartForm behaviour 2018-05-08 20:09:42 -04:00
config.js v1.10.1 2018-05-04 12:04:10 +09:00
debug.js Fix linting 2018-01-25 15:03:03 -06:00
deep.js renaming nova-xyz directories to vulcan-xyz 2017-03-24 10:19:24 +09:00
deep_extend.js renaming nova-xyz directories to vulcan-xyz 2017-03-24 10:19:24 +09:00
dynamic_loader.js Make dynamic imports work properly; move Avatar component to core to enable using admin dashboard without base-components 2017-07-05 10:31:37 +09:00
errors.js Factor out error handling code; clean up form props; pass currentUser down to FormComponent 2018-04-28 10:54:03 +09:00
findbyids.js Refactor connectors code to avoid repeating getSetting 2018-03-03 11:39:56 +09:00
fragment_matcher.js Add API for adding fragment matchers to apollo client; delay apollo client initialization until after app initialization 2017-09-14 10:06:41 +02:00
fragments.js Add New button to datatables 2018-01-03 15:13:50 +09:00
graphql.js Working on nested forms support 2018-03-22 19:22:54 +09:00
headtags.js Enable adding components to HeadTags outside of Helmet 2017-10-17 10:26:38 +09:00
icons.js integrate Embedly thumbnail inside EmbedlyURL component (not using ThumbnailURL anymore) 2017-05-06 16:08:01 +09:00
index.js Factor out error handling code; clean up form props; pass currentUser down to FormComponent 2018-04-28 10:54:03 +09:00
intl_polyfill.js Clean up/refactor settings; add registerSetting and /settings route 2017-09-22 12:24:15 +02:00
mongo_redux.js Mingo.Query is a class now, instantiate it with new 2018-03-14 12:20:30 +01:00
redux.js renaming nova-xyz directories to vulcan-xyz 2017-03-24 10:19:24 +09:00
routes.js Use getComponent for childRoutes 2018-01-11 22:59:25 +01:00
settings.js Add isPublic option to registerSetting; explain Stripe settings 2018-02-05 10:44:56 +09:00
startup.js Refactor connectors code to avoid repeating getSetting 2018-03-03 11:39:56 +09:00
strings.js renaming nova-xyz directories to vulcan-xyz 2017-03-24 10:19:24 +09:00
utils.js Changes to SmartForm behaviour 2018-05-08 20:09:42 -04:00
validation.js Fix form error issue 2018-05-07 11:40:54 +09:00