Commit graph

3923 commits

Author SHA1 Message Date
Erik Dakoda
73086be5ca SubmitButtonLabels
- `submitLabel`, `cancelLabel`, and `revertLabel` now take a node (which is backwards compatible with string) so that you can include a FormattedMessage, an icon, etc.
2018-09-25 09:42:56 -04:00
SachaG
6864b572be Merge branch 'devel' into custom-form-components
# Conflicts:
#	packages/vulcan-forms/lib/components/FormNestedArray.jsx
2018-09-23 08:16:48 +09:00
SachaG
5b09d98918 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-09-23 08:15:34 +09:00
SachaG
07427a2c96 Add formComponents prop to forms to enable customizing a specific form's components 2018-09-23 08:13:09 +09:00
Apollinaire
169e01cc4f revert changes on Utils.getUnusedSlug and add check to users slug 2018-09-21 15:12:58 +02:00
Apollinaire
844d457cac remove Users slug onUpdate
I left the updates related to the openCrud API:
`onInsert` -> `onCreate`
And also left the update on `Utils.GetUnusedSlug`
2018-09-21 13:14:16 +02:00
Erik Dakoda
5ca08daa8e SmartForm.getLabel() now falls back to a "global" namespace when a collection-specific intl string is not found; then it falls back to using no namespace 2018-09-19 21:12:27 -04:00
Erik Dakoda
7e66908d21 Refactoring to remove react-bootstrap and to customize FormNestedArray for material-ui 2018-09-19 13:16:48 -04:00
Apollinaire
9bd1d36aa4 Users' slug is updated on displayname change
- The slug is updated when the displayname changes
- The `Utils.getUnusedSlug` helper function does not return empty slugs anymore (it's '0' if the `slug` argument is falsy)
2018-09-19 17:34:48 +02:00
SachaG
bfd336871e Fix "Variable "$data" of required type "CreateAnalyticsEventDataInput!" was not provided." error 2018-09-18 09:53:37 +09:00
SachaG
649f74e25b Used could be null 2018-09-18 09:52:50 +09:00
SachaG
4fcd37cde7 Add warnings when no mutable fields have been defined 2018-09-18 08:32:32 +09:00
SachaG
f5e44dc68e v1.12.8 2018-09-17 09:54:10 +09:00
SachaG
ab449136c1 Make canReadField work for guests too 2018-09-17 09:53:21 +09:00
SachaG
c095572bf1 v1.12.7 2018-09-16 15:39:23 +09:00
SachaG
b3653fb48e Fix Users.canReadField 2018-09-16 15:36:44 +09:00
SachaG
11c49f9185 Formatting clean up 2018-09-16 11:48:56 +09:00
SachaG
dfa4c77314 ESLint fixes 2018-09-16 11:48:38 +09:00
Sacha Greif
f41bf7444e
Merge pull request #2070 from meteorplus/patch-14
fix bug preflight from apollo
2018-09-16 11:42:00 +09:00
Sacha Greif
fdcdea9301
Merge pull request #2072 from OrigenStudio/fix/locale-change
Pass locale as key to IntlProvider to force a rerender on locale change
2018-09-16 11:40:57 +09:00
Sacha Greif
62370e385e
Merge pull request #2071 from mousetraps/itani/withListToWithMulti
cleanup: Fix naming after withList -> withMulti change
2018-09-16 10:34:33 +09:00
Sacha Greif
5ccb9ab92d
Merge pull request #2062 from OrigenStudio/feature/cc-bcc-replyTo-added-to-email-api
Added support for cc, bcc, and replyTo fields for email API
2018-09-16 10:11:18 +09:00
ochicf
41bcb84d0c pass locale as key to IntlProvider to force a rerender on locale change
See docs: https://github.com/yahoo/react-intl/wiki/Components#dynamic-language-selection
2018-09-15 22:15:31 +02:00
Sara Itani
565cda5979 cleanup: Fix naming after withList -> withMulti change 2018-09-14 22:17:08 -07:00
MeteorPlus
192ced4b91
fix bug preflight from apollo
resetStore: Store reset while query was in flight.


https://github.com/apollographql/apollo-client/issues/2919#issuecomment-378790109
2018-09-15 03:21:05 +01:00
PolGuixe
a696183dfc refactored again and eliminated utils helpers 2018-09-14 12:58:28 +02:00
ochicf
b392bad1db update clearForm call, pass document as initial only for edit mutations 2018-09-14 11:14:05 +02:00
ochicf
01b918a8f6 remove options 2018-09-14 11:13:38 +02:00
ochicf
157527fda4 update clearForm call 2018-09-14 11:13:05 +02:00
ochicf
55895431a3 simplify clearForm options 2018-09-14 11:12:45 +02:00
ochicf
f7bda07db0 Merge remote-tracking branch 'upstream/devel' into fix/clear-current-values-on-edit 2018-09-14 11:08:09 +02:00
SachaG
2d4889abcc Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel
# Conflicts:
#	packages/vulcan-core/lib/modules/default_resolvers.js
2018-09-14 11:10:55 +09:00
Sacha Greif
4167a8a10b
Merge pull request #2069 from Apollinaire/devel
[BugFix] remove `document` from `canCreateField`
2018-09-14 10:08:16 +09:00
Apollinaire
eb158dcb90 [BugFix] remove document from canCreateField
When you run Users.CanCreateField with a function in `canCreate` field prop, it's trying to call a `document` arg that is undefined, because obviously there is no initial document when you try to create a document. So now it's only calling canCreate(user) as defined in the docs. I should have spotted this in #2006, sorry!
2018-09-13 19:04:45 +02:00
Erik Dakoda
9be92d0903 - Fixed bug in single resolver (slug is undefined)
- Fixed bug in Utils.pluralize (pluralizing words ending in 's', for example address => addresses)
2018-09-13 10:46:10 -04:00
PolGuixe
007ad2a6fd VulcanEmail.send is backwards compatible 2018-09-13 16:41:47 +02:00
ochicf
40af573cb5 do not clear current document on edit, and set it as initial 2018-09-12 16:01:14 +02:00
ochicf
a70e476887 retrieve and pass clear form options 2018-09-12 15:58:21 +02:00
ochicf
95d0e9c3d7 add option to parametrize whether to clear initial document or not 2018-09-12 15:57:37 +02:00
ochicf
7866fc380c add option to parametrize whether to clear current document or not 2018-09-12 15:54:40 +02:00
ochicf
a3d8accc64 add callbacks to 'router.onUpdate.async' hook 2018-09-12 13:21:25 +02:00
ochicf
2c33db686d add router.onUpdate.async hook 2018-09-12 13:20:40 +02:00
ochicf
f5ca3c1284 runCallbacksAsync can be run on client, return promise of results 2018-09-12 13:15:52 +02:00
SachaG
a18c4ebb6a v1.12.6 2018-09-12 14:52:49 +09:00
SachaG
1404670631 withList -> withMulti 2018-09-12 14:51:44 +09:00
SachaG
0c99b9a7ac v1.12.5 2018-09-12 12:01:10 +09:00
SachaG
43515b39bb Fix replaceComponent 2018-09-12 11:59:58 +09:00
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
SachaG
85c57c4beb Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-09-12 10:32:53 +09:00
SachaG
8e325122c6 v1.12.4 2018-09-12 10:32:45 +09:00