removed unnecessary console message

This commit is contained in:
smilerz
2021-04-16 15:29:11 -05:00
parent 04d131f534
commit 82abdd0144

View File

@@ -711,11 +711,9 @@
let uri = window.location.search.substring(1); let uri = window.location.search.substring(1);
let params = new URLSearchParams(uri); let params = new URLSearchParams(uri);
q = params.get("id") q = params.get("id")
console.log(q)
this.error = undefined this.error = undefined
this.loading = true this.loading = true
this.$http.get("{% url 'api:bookmarkletimport-list' %}?id=" + id_bkmk ).then((response) => { this.$http.get("{% url 'api:bookmarkletimport-list' %}?id=" + id_bkmk ).then((response) => {
console.log(response.data)
this.automatic = false this.automatic = false
this.source_data = response.data[0]['html'] this.source_data = response.data[0]['html']
this.remote_url = response.data[0]['url'] this.remote_url = response.data[0]['url']
@@ -780,7 +778,6 @@
formData.append('files', this.recipe_files[i]); formData.append('files', this.recipe_files[i]);
} }
this.$http.post("{% url 'view_import' %}", formData, {headers: {'Content-Type': 'multipart/form-data'}}).then((response) => { this.$http.post("{% url 'view_import' %}", formData, {headers: {'Content-Type': 'multipart/form-data'}}).then((response) => {
console.log(response.data)
window.location.href = "{% url 'view_import_response' 1237654 %}".replace('1237654', response.data['import_id']) window.location.href = "{% url 'view_import_response' 1237654 %}".replace('1237654', response.data['import_id'])
}).catch((err) => { }).catch((err) => {
this.error = err.data this.error = err.data
@@ -890,11 +887,9 @@
}, },
htmlDragStart: function (e) { htmlDragStart: function (e) {
console.log(e.target.innerText)
e.dataTransfer.setData('value', e.target.innerText) e.dataTransfer.setData('value', e.target.innerText)
}, },
imageDragStart: function (e) { imageDragStart: function (e) {
console.log(e.target.src)
e.dataTransfer.setData('value', e.target.src) e.dataTransfer.setData('value', e.target.src)
}, },
replacePreview: function(field, e) { replacePreview: function(field, e) {
@@ -928,7 +923,6 @@
break; break;
case 'ingredients': case 'ingredients':
this.$http.post('{% url 'api_ingredient_from_string' %}', {text: v}, {emulateJSON: true}).then((response) => { this.$http.post('{% url 'api_ingredient_from_string' %}', {text: v}, {emulateJSON: true}).then((response) => {
console.log(response)
let new_ingredient={ let new_ingredient={
unit: {id: Math.random() * 1000, text: response.body.unit}, unit: {id: Math.random() * 1000, text: response.body.unit},
amount: String(response.body.amount), amount: String(response.body.amount),