From 1167ae1f35454040a96f8562dbcc97c71caa31ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20G=C3=B6bel?= <dgoebel@techfak.uni-bielefeld.de>
Date: Fri, 6 Oct 2023 15:14:35 +0200
Subject: [PATCH] Fix wrong API call when deleting a workflow execution

#69
---
 src/stores/workflowExecutions.ts                   | 2 +-
 src/views/workflows/ListWorkflowExecutionsView.vue | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/stores/workflowExecutions.ts b/src/stores/workflowExecutions.ts
index 1219b81..59c6c61 100644
--- a/src/stores/workflowExecutions.ts
+++ b/src/stores/workflowExecutions.ts
@@ -60,7 +60,7 @@ export const useWorkflowExecutionStore = defineStore({
         .finally(onFinally);
     },
     deleteExecution(executionId: string): Promise<void> {
-      return WorkflowExecutionService.workflowExecutionCancelWorkflowExecution(
+      return WorkflowExecutionService.workflowExecutionDeleteWorkflowExecution(
         executionId,
       ).then(() => {
         delete this.executionMapping[executionId];
diff --git a/src/views/workflows/ListWorkflowExecutionsView.vue b/src/views/workflows/ListWorkflowExecutionsView.vue
index c42582c..5144545 100644
--- a/src/views/workflows/ListWorkflowExecutionsView.vue
+++ b/src/views/workflows/ListWorkflowExecutionsView.vue
@@ -63,11 +63,11 @@ const deleteModalString = computed<string>(() => {
     return `Workflow Execution ${
       workflowRepository.workflowMapping[
         executionsState.executionToDelete.workflow_id
-      ]
+      ].name
     }@${
       workflowRepository.versionMapping[
         executionsState.executionToDelete.workflow_version_id
-      ]
+      ].version
     } from ${dayjs
       .unix(executionsState.executionToDelete.start_time)
       .format("DD.MM.YYYY HH:mm")}`;
-- 
GitLab