Merge branch 'bulma-admin-interface' of https://github.com/tainacan/tainacan into bulma-admin-interface

This commit is contained in:
mateuswetah 2018-02-07 14:14:52 -02:00
commit 947b72e183
3 changed files with 6 additions and 5 deletions

View File

@ -48,9 +48,10 @@ export const eventBus = new Vue({
data.instance.message = JSON.stringify( [] );
data.instance.value = response.value;
}, error => {
const field = this.errors.find(error => error.field_id === data.field_id );
eventElement.errorsMsg = JSON.stringify( field.error );
eventElement.value = data.values;
console.log(error);
// const field = this.errors.find(error => error.field_id === data.field_id );
// eventElement.errorsMsg = JSON.stringify( field.error );
// eventElement.value = data.values;
});
}
},

View File

@ -4,7 +4,7 @@ import Vue from 'vue'
import VueCustomElement from 'vue-custom-element';
import { eventBus } from './event-bus-web-components';
import Buefy from 'buefy'
import 'buefy/lib/buefy.css'
Vue.use(Buefy)

View File

@ -32,7 +32,7 @@ export const updateMetadata = ({ commit }, { item_id, field_id, values }) => {
commit('setSingleField', field);
})
.catch( error => {
console.log('error', error);
reject(error.response.data.errors);
})
});
};