diff --git a/src/views/workflows/StartWorkflowView.vue b/src/views/workflows/StartWorkflowView.vue index e6fde26d083723352bb271517dadc2c2b077585f..006784fdd60ff0dbfcae46b38de745fa242201f7 100644 --- a/src/views/workflows/StartWorkflowView.vue +++ b/src/views/workflows/StartWorkflowView.vue @@ -31,11 +31,13 @@ const versionState = reactive<{ workflowVersion?: WorkflowVersion; loading: boolean; workflowExecutionError?: string; + errorText: string; }>({ parameterSchema: undefined, workflowVersion: undefined, loading: false, workflowExecutionError: undefined, + errorText: "", }); watch( @@ -94,9 +96,7 @@ function startWorkflow( }) .catch((err: ApiError) => { console.error(err); - if (err.body["detail"].includes("workflow execution limit")) { - versionState.workflowExecutionError = "limit"; - } + versionState.errorText = err.body["detail"] ?? ""; errorToast?.show(); }) .finally(() => { @@ -118,13 +118,8 @@ onMounted(() => { > <template #default>Error starting workflow</template> <template #body> - <template v-if="versionState.workflowExecutionError === 'limit'"> - You have too many active workflow executions to start a new one. - </template> - <template v-else> - There was an error with starting the workflow execution. Look in the - console for more information. - </template> + There was an error with starting the workflow execution:<br /> + "{{ versionState.errorText }}" </template> </bootstrap-toast> <parameter-schema-form-component