enable import button after error

This commit is contained in:
smilerz 2021-04-17 11:12:22 -05:00
parent ba061df1b6
commit f594ba4c69

View File

@ -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')
}) })