diff --git a/client/src/components/Tool/ToolForm.vue b/client/src/components/Tool/ToolForm.vue index f51789903c6..0a1ad81b0bb 100644 --- a/client/src/components/Tool/ToolForm.vue +++ b/client/src/components/Tool/ToolForm.vue @@ -3,6 +3,7 @@
+
@@ -152,6 +153,7 @@ export default { remapAllowed: false, errorTitle: null, errorContent: null, + messageShow: false, messageVariant: "", messageText: "", useCachedJobs: false, @@ -250,15 +252,21 @@ export default { .then((data) => { this.formConfig = data; this.remapAllowed = this.job_id && data.job_remap; - this.showLoading = false; this.showForm = true; + this.messageShow = false; if (newVersion) { this.messageVariant = "success"; this.messageText = `Now you are using '${data.name}' version ${data.version}, id '${data.id}'.`; } }) + .catch((error) => { + this.messageVariant = "danger"; + this.messageText = `Loading tool ${this.id} failed: ${error}`; + this.messageShow = true; + }) .finally(() => { this.disabled = false; + this.showLoading = false; }); }, onExecute(config, historyId) {