mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
remove console logs to avoid mess in the console
This commit is contained in:
parent
d6933fce35
commit
d5501bcfbd
@ -11,19 +11,16 @@ const makeFetch = (method, url, body) => {
|
|||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
console.log('200 error')
|
|
||||||
return response.json();
|
return response.json();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.status === 422) {
|
if (response.status === 422) {
|
||||||
console.log('422 error')
|
|
||||||
return response.json().then(response => {
|
return response.json().then(response => {
|
||||||
throw ValidationException(response)
|
throw ValidationException(response)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.status === 403) {
|
if (response.status === 403) {
|
||||||
console.log('403 error')
|
|
||||||
throw AccessException(response);
|
throw AccessException(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ export default {
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
if (typeof this.type === 'undefined') { // action=create or addContact
|
if (typeof this.type === 'undefined') { // action=create or addContact
|
||||||
console.log('will rewrite data');
|
console.log('will rewrite data');
|
||||||
if (this.action === 'addContact') {
|
if (this.action === 'addContact') {
|
||||||
type = 'thirdparty'
|
type = 'thirdparty'
|
||||||
data = this.$refs.castThirdparty.$data.thirdparty;
|
data = this.$refs.castThirdparty.$data.thirdparty;
|
||||||
@ -238,8 +238,6 @@ export default {
|
|||||||
throw 'error with object type';
|
throw 'error with object type';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('type', type);
|
|
||||||
console.log('data', data);
|
|
||||||
// pass datas to parent
|
// pass datas to parent
|
||||||
this.$emit('saveFormOnTheFly', { type: type, data: data });
|
this.$emit('saveFormOnTheFly', { type: type, data: data });
|
||||||
},
|
},
|
||||||
|
@ -89,11 +89,9 @@ export default {
|
|||||||
return this.isMultiline === true ? "div" : "span";
|
return this.isMultiline === true ? "div" : "span";
|
||||||
},
|
},
|
||||||
multiline() {
|
multiline() {
|
||||||
//console.log(this.isMultiline, typeof this.isMultiline);
|
|
||||||
return this.isMultiline === true ? "multiline" : "";
|
return this.isMultiline === true ? "multiline" : "";
|
||||||
},
|
},
|
||||||
isConfidential() {
|
isConfidential() {
|
||||||
console.log(this.address.confidential)
|
|
||||||
return this.address.confidential;
|
return this.address.confidential;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user