From 1cd0a36dd4618aec691ae3f0c6641723572b128c Mon Sep 17 00:00:00 2001 From: TinCodes Date: Thu, 4 Jan 2024 12:14:41 -0400 Subject: [PATCH] Asset generation UI is toggled off on generation error --- src/components/modeler/Modeler.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/modeler/Modeler.vue b/src/components/modeler/Modeler.vue index cf02defe5..a84090bdd 100644 --- a/src/components/modeler/Modeler.vue +++ b/src/components/modeler/Modeler.vue @@ -1928,6 +1928,7 @@ export default { if (response.data) { if (response.data?.error) { this.assetFail = true; + this.loadingAI = false; } } }) @@ -1935,6 +1936,7 @@ export default { const errorMsg = error.response?.data?.message || error.message; window.ProcessMaker.alert(errorMsg, 'danger'); this.assetFail = true; + this.loadingAI = false; }); }, highlightTaskArrays(data) { @@ -1990,6 +1992,7 @@ export default { window.ProcessMaker.alert(response.data.message, 'danger'); // Stop and show error this.assetFail = true; + this.loadingAI = false; } else { this.setPromptSessions(response.data.promptSessionId); // Successful generation @@ -2026,6 +2029,7 @@ export default { () => { // Output error this.assetFail = true; + this.loadingAI = false; }, ); },