From dbfdb67a74a2929186786d316c96bdf0daea32ae Mon Sep 17 00:00:00 2001 From: Milos Paunovic Date: Mon, 29 Jul 2024 12:24:23 +0200 Subject: [PATCH] chore(ui): passing the three props as query string parameters --- ui/src/stores/executions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/stores/executions.js b/ui/src/stores/executions.js index a3622bf247..54e8845ccc 100644 --- a/ui/src/stores/executions.js +++ b/ui/src/stores/executions.js @@ -143,7 +143,9 @@ export default { }, deleteExecution({commit}, options) { const {id, deleteLogs, deleteMetrics, deleteStorage} = options - return this.$http.delete(`${apiUrl(this)}/executions/${id}`, {data: {deleteLogs, deleteMetrics, deleteStorage}}).then(() => { + const qs = Object.entries({deleteLogs, deleteMetrics, deleteStorage}).map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`).join("&"); + + return this.$http.delete(`${apiUrl(this)}/executions/${id}?${qs}`).then(() => { commit("setExecution", null) }) },