fix loading bookmarklet

This commit is contained in:
smilerz 2021-04-19 15:32:43 -05:00
parent 8b61d8c504
commit ed76f020c5

View File

@ -708,15 +708,12 @@
})
},
loadBookmarklet: function(id_bkmk) {
let uri = window.location.search.substring(1);
let params = new URLSearchParams(uri);
q = params.get("id")
this.error = undefined
this.loading = true
this.$http.get("{% url 'api:bookmarkletimport-list' %}?id=" + id_bkmk ).then((response) => {
this.$http.get("{% url 'api:bookmarkletimport-detail' 1237654 %}".replace('1237654', id_bkmk)).then((response) => {
this.automatic = false
this.source_data = response.data[0]['html']
this.remote_url = response.data[0]['url']
this.source_data = response.data['html']
this.remote_url = response.data['url']
this.loadRecipe()
}).catch((err) => {
this.error = err.data