From 4562a9b776412ac491764d681e90bf7c01258b2e Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 16 Sep 2024 08:52:23 +0200 Subject: [PATCH] Disable wizard while sending to BCODB --- .../Workflow/Invocation/Export/InvocationExportWizard.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/components/Workflow/Invocation/Export/InvocationExportWizard.vue b/client/src/components/Workflow/Invocation/Export/InvocationExportWizard.vue index 824d72f4e84a..b939f23fb5bc 100644 --- a/client/src/components/Workflow/Invocation/Export/InvocationExportWizard.vue +++ b/client/src/components/Workflow/Invocation/Export/InvocationExportWizard.vue @@ -135,7 +135,9 @@ const exportPluginTitle = computed(() => { return plugin ? plugin.title : ""; }); -const isWizardBusy = computed(() => stsMonitor.isRunning.value || taskMonitor.isRunning.value); +const isBusy = ref(false); + +const isWizardBusy = computed(() => stsMonitor.isRunning.value || taskMonitor.isRunning.value || isBusy.value); const stepper = useStepper({ "select-format": { @@ -237,7 +239,9 @@ async function exportInvocation() { await exportToFileSource(); break; case "bco-database": + isBusy.value = true; await saveInvocationBCOToDatabase(props.invocationId, exportData.bcoDatabase); + isBusy.value = false; break; } //@ts-ignore incorrect property does not exist on type error