Commit graph

209 commits

Author SHA1 Message Date
SachaG
5c43de929c Fix withEdit imports; fix dropdown bug 2018-05-10 17:48:22 +09:00
SachaG
df66de5861 Merge branch 'devel' of https://github.com/VulcanJS/Vulcan into devel 2018-05-09 11:22:54 +09:00
SachaG
52256b2a60 Small fixes 2018-05-09 11:22:51 +09:00
Sacha Greif
cb0e8f5d5a
Merge pull request #1978 from Apollinaire/withAccess
check for redirect before trying to redirect
2018-05-09 07:59:33 +09:00
Apollinaire
5c15120113 check for redirect before trying to redirect
using `withAccess` without setting redirect used to crash the client because there was no test on `redirect`.  Current behaviour is: if redirect is not a string then no redirection is done and the component simply is not displayed.
2018-05-05 16:12:40 +02:00
Sacha Greif
9118d8f8ad
Merge pull request #1975 from Apollinaire/devel
withList Loading prop adjustment
2018-05-04 16:14:53 +09:00
SachaG
18bde83fbc v1.10.1 2018-05-04 12:04:10 +09:00
SachaG
13609dd755 Various small improvements 2018-05-04 11:56:49 +09:00
Apollinaire
b6669a3f7e withList Loading improved
Follows the recommanded loading from Apollo. See the Apollo docs about `[data.networkstatus](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-query-data-networkStatus)` and `[data.loading](https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-query-data-loading)`
2018-05-03 10:27:23 +02:00
Bernardo Dias
5b9bb61688 Update Flash component and withMessages container 2018-05-02 15:02:52 -03:00
SachaG
a086e6e584 Update flash messages 2018-04-28 18:51:20 +09:00
SachaG
4fb3047f1f remove console.log 2018-04-24 10:21:20 +09:00
SachaG
b4f960301b Isolate bootstrap dependencies in new vulcan-ui-bootstrap package 2018-04-23 09:47:04 +09:00
SachaG
63bc4e562a v1.9.1 2018-04-21 18:30:15 +09:00
SachaG
1af50c1247 Improve i18n and make locale switchable via setLocale on context 2018-04-21 17:58:25 +09:00
SachaG
98b9be82f7 v1.9.0 2018-04-17 08:19:54 +09:00
SachaG
59c12c27d2 Log slug in default resolver; add rowClass prop to Datatable 2018-04-06 17:59:24 +09:00
SachaG
759899212f Remove __typename from datatable; fix select options 2018-03-28 11:20:41 +09:00
SachaG
5705de3559 Improve edit/new buttons callback handling 2018-03-28 11:13:39 +09:00
SachaG
1d7cef5556 Work on form errors & validation 2018-03-25 10:54:45 +09:00
SachaG
f7da9108f7 Use getFormType(); make user.services object viewable to owner only; clean up Datatable props 2018-03-22 16:54:50 +09:00
SachaG
7061483af8 Improve Datatable new/edit buttons; simplify FormWrapper loading check 2018-03-20 14:56:09 +09:00
ochicf
041eb4254d Mingo.Query is a class now, instantiate it with new 2018-03-14 12:20:30 +01:00
SachaG
926f155655 v1.8.11 2018-03-05 09:54:26 +09:00
Eric Burel
bf9ebaf57c
Allow guests to create document as a default
Hi, using when using the default mutations, you can't allow a guest user to create a document, even if you allowed it for `guests` when setting up permissions. This is because a undefined `user` will always trigger a `false` during the "new" check.

I think it is safe to remove this, because anyway you have to manually tell who can create document (or so I think, maybe I'm  wrong?) so you can't allow guests to create documents by mistake.
2018-03-03 23:11:33 +01:00
SachaG
d3fdb3ae38 v1.8.10 2018-03-03 15:12:16 +09:00
SachaG
e63c412198 Don't try to reorder items on vote (fix https://github.com/VulcanJS/Vulcan-Starter/issues/34) 2018-03-03 12:04:41 +09:00
SachaG
861e65e641 Refactor connectors code to avoid repeating getSetting 2018-03-03 11:39:56 +09:00
SachaG
09de6392f3 Handle urls in cards/datatable 2018-02-24 18:58:14 +09:00
SachaG
748e2f8fea Charges dashboard improvements 2018-02-24 18:26:56 +09:00
SachaG
582dc2010b Add support for Users objects to cards & datatables 2018-02-24 18:15:54 +09:00
SachaG
8e27870bf0 processCharge -> processEvent; call processEvent after subscription, too; add Charges dashboard 2018-02-24 18:15:42 +09:00
SachaG
bf4aba4a32 Small clean up for withList and withDocument 2018-02-18 18:00:07 +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
270c6b4215 Use connectors and await/async 2018-02-18 15:26:59 +09:00
SachaG
a899532c4f mutation -> mutator 2018-02-17 11:17:25 +09:00
SachaG
29d10c9277 Merge branch 'devel' into connectors 2018-02-17 10:58:33 +09:00
SachaG
97e0883f31 Refactor NewButton/EditButton code 2018-02-15 12:04:51 +09:00
SachaG
e3ba347f80 Better way: just use options' fragmentName as mutationFragment 2018-02-15 09:32:41 +09:00
SachaG
f9893aa615 Pass down newFragmentName and editFragmentName 2018-02-14 22:22:51 +09:00
SachaG
cee5fa6b6c Make currentUser available as a variable for withDocument and withList 2018-02-14 19:10:29 +09:00
SachaG
6add1d7f0e Merge branch 'devel' into connectors 2018-02-12 18:55:47 +09:00
SachaG
faf92b3650 Use better API (create, update, delete, find, get) 2018-02-12 18:55:37 +09:00
SachaG
2eeb252bd5 Let EditButton, NewButton pass through props to SmartForm 2018-02-12 18:49:22 +09:00
SachaG
7639801434 Split out Mongo operations into connectors 2018-02-11 12:57:51 +09:00
SachaG
31621b39b2 Add createdAtFormattedShort field to charges 2018-02-09 11:30:15 +09:00
SachaG
88c69b9d78 Pass down currentUserData 2018-02-08 12:21:45 +09:00
SachaG
ac838a65e4 Add notifyOnNetworkStatusChange option to withList 2018-02-05 10:45:20 +09:00
Vincent Roman
d03963680b Datatable - spacing consistency 2018-02-03 07:06:56 +00:00