From f594ba4c69fd0a28f3f67edc56cf40e3ff83b481 Mon Sep 17 00:00:00 2001 From: smilerz Date: Sat, 17 Apr 2021 11:12:22 -0500 Subject: [PATCH] enable import button after error --- cookbook/templates/url_import.html | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbook/templates/url_import.html b/cookbook/templates/url_import.html index 99b1f6b79..858e09581 100644 --- a/cookbook/templates/url_import.html +++ b/cookbook/templates/url_import.html @@ -717,6 +717,7 @@ this.$http.post(`{% url 'data_import_url' %}`, this.recipe_data).then((response) => { window.location.href = response.data }).catch((err) => { + this.importing_recipe = false console.log(err); this.makeToast(gettext('Error'), gettext('An error occurred while trying to import this recipe!') + err.bodyText, 'danger') })