Commit graph

21 commits

Author SHA1 Message Date
SachaG
d1a674d36e Convert SimpleSchema schema to JSON object before using it in Form.jsx 2018-03-26 11:51:08 +09:00
SachaG
7061483af8 Improve Datatable new/edit buttons; simplify FormWrapper loading check 2018-03-20 14:56:09 +09:00
SachaG
bb43a16e68 Revert "Pass an extraTerms argument to all extra queries"
This reverts commit ab8fd47d76.
2018-02-18 17:42:12 +09:00
SachaG
ab8fd47d76 Pass an extraTerms argument to all extra queries 2018-02-18 16:56:58 +09:00
SachaG
13a2453009 Merge branch 'vulcan-updates-jan-2018' of https://github.com/justinr1234/Vulcan into justinr1234-vulcan-updates-jan-2018
# Conflicts:
#	packages/vulcan-forms/lib/components/Form.jsx
#	packages/vulcan-lib/lib/modules/utils.js
2018-01-27 12:30:33 +09:00
Justin Reynolds
919f96a32e Allow SmartForm to use collection or collectionName 2018-01-26 17:41:15 -06:00
Justin Reynolds
75b6ece0a4 Fix linting 2018-01-25 15:03:03 -06:00
SachaG
efd5984f56 Pass parent props to FormWrapper in render instead of componentWillReceiveProps; make Form props updatable through FormWrapper 2018-01-20 13:31:34 +09:00
SachaG
9169735128 Add queryFragmentName and mutationFragmentName props to FormWrapper; add componentWillReceiveProps to update Form props on FormWrapper props change 2018-01-20 11:01:45 +09:00
Sebastian Grebe
0799976f77
Form loading state fix
In some cases it seems that the loading property is set to true altough the document is already there.
2018-01-11 12:38:55 +01:00
SachaG
1eba12a8fa Disable polling in withDocument when used through FormWrapper 2018-01-11 09:07:56 +09:00
Luca Hagel
97116235fa Clear FormWrapper warnings, remove shouldCompUpdate & make it PureFunction 2018-01-06 08:38:14 +01:00
Luca Hagel
98b4b92bcd Make FormWrapper a stadnard component so shouldComponentUpdate actually gets called 2018-01-06 07:50:00 +01:00
SachaG
79958ea18f Fix extraQueries check 2018-01-04 08:58:50 +09:00
SachaG
a6ee63bbed Handle extra queries in New Document forms as well (since they don't have withDocument HoC) 2018-01-03 22:03:50 +09:00
SachaG
8d0cc3e5e2 Make form sub-property optional; Handle extra queries in FormWrapper; remove resolveAs fragment shape "guessing" code 2017-12-28 11:31:55 +09:00
SachaG
aad9dc9222 Revert change to form fragments when field has a resolver and contains an array 2017-12-28 09:58:18 +09:00
SachaG
0cbb904f2d Set enableCache when defining HoC rather than when defining resolvers for more granularity 2017-12-13 18:39:19 +09:00
SachaG
41b585adfa Move form's wrapped component instantiation to constructor 2017-11-09 10:01:51 +09:00
Sacha Greif
33296c1421 Add fetchPolicy and propertyName options to withList and withDocument 2017-11-01 15:37:57 +09:00
SachaG
a5d88880fa Reorganize forms package; individual forms component can now be overridden with replaceComponent 2017-08-19 10:41:08 +09:00
Renamed from packages/vulcan-forms/lib/FormWrapper.jsx (Browse further)