enable import button after error
This commit is contained in:
parent
ba061df1b6
commit
f594ba4c69
@ -717,6 +717,7 @@
|
|||||||
this.$http.post(`{% url 'data_import_url' %}`, this.recipe_data).then((response) => {
|
this.$http.post(`{% url 'data_import_url' %}`, this.recipe_data).then((response) => {
|
||||||
window.location.href = response.data
|
window.location.href = response.data
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
this.importing_recipe = false
|
||||||
console.log(err);
|
console.log(err);
|
||||||
this.makeToast(gettext('Error'), gettext('An error occurred while trying to import this recipe!') + err.bodyText, 'danger')
|
this.makeToast(gettext('Error'), gettext('An error occurred while trying to import this recipe!') + err.bodyText, 'danger')
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user