Merge branch 'bulma-admin-interface' of https://github.com/tainacan/tainacan into bulma-admin-interface
This commit is contained in:
commit
947b72e183
|
@ -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;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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);
|
||||
})
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue