Commit graph

61 commits

Author SHA1 Message Date
SachaG
5c43de929c Fix withEdit imports; fix dropdown bug 2018-05-10 17:48:22 +09:00
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
SachaG
18bde83fbc v1.10.1 2018-05-04 12:04:10 +09:00
SachaG
c811efaa47 Add support for nested dropdowns 2018-05-04 11:56:19 +09:00
Ruslan Kabalin
e78f307576 ui-bootstrap: Fix attributes spreading at TooltipTrigger. 2018-05-01 01:53:06 +01:00
Ruslan Kabalin
fc7a03e4e8 ui-bootstrap: Refactor ModalTrigger to use Modal component. 2018-05-01 01:53:06 +01:00
Ruslan Kabalin
290b3c7ed3 ui-bootstrap: Add Modal component. 2018-05-01 01:53:06 +01:00
SachaG
18bec2b2c0 Small fixes 2018-04-28 10:54:24 +09:00
SachaG
e89a4a828a Adding tooltip and dropdown components 2018-04-24 10:20:38 +09:00
SachaG
2e0f9184cc Fixing mistakes 2018-04-23 09:51:33 +09:00
SachaG
b4f960301b Isolate bootstrap dependencies in new vulcan-ui-bootstrap package 2018-04-23 09:47:04 +09:00