fix(my-joy-beta): fix tags/fw match

fixes #1267
This commit is contained in:
Sérgio Ramos 2018-02-27 14:11:47 +00:00
parent d8618eab30
commit 461d8697ca
4 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@
"dependencies": {
"brok": "^2.0.0",
"brule": "^3.1.0",
"cloudapi-gql": "^6.1.0",
"cloudapi-gql": "^6.1.1",
"hapi": "^17.2.0",
"hapi-triton-auth": "^1.0.0",
"inert": "^5.1.0",

View File

@ -151,7 +151,7 @@ export default compose(
handleEdit: () => {
return history.push(`/~create/tags${history.location.search}`);
},
shouldAsyncValidate: ({ trigger }) => trigger === 'change',
shouldAsyncValidate: ({ trigger }) => trigger === 'submit',
handleAsyncValidate: async ({ name = '', value = '' }) => {
const isNameValid = /^[a-zA-Z_.-]{1,16}$/.test(name);
const isValueValid = /^[a-zA-Z_.-]{1,16}$/.test(value);

View File

@ -214,7 +214,7 @@ export default compose(
handleToggleEditing: value => {
return dispatch(set({ name: `editing-tag`, value }));
},
shouldAsyncValidate: ({ trigger }) => trigger === 'change',
shouldAsyncValidate: ({ trigger }) => trigger === 'submit',
handleAsyncValidate: async ({ name = '', value = '' }) => {
const isNameValid = /^[a-zA-Z_.-]{1,16}$/.test(name);
const isValueValid = /^[a-zA-Z_.-]{1,16}$/.test(value);

View File

@ -2542,9 +2542,9 @@ clone@^1.0.2:
version "1.0.3"
resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.3.tgz#298d7e2231660f40c003c2ed3140decf3f53085f"
cloudapi-gql@^6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/cloudapi-gql/-/cloudapi-gql-6.1.0.tgz#898da3ab7684b8378eb79c5aa42073b0465318e8"
cloudapi-gql@^6.1.1:
version "6.1.1"
resolved "https://registry.yarnpkg.com/cloudapi-gql/-/cloudapi-gql-6.1.1.tgz#2f48b12b2f96612f62759eac6c5280573bc4ba49"
dependencies:
apr-map "3.x.x"
boom "7.x.x"