Skip to content

Commit

Permalink
chore(ui): passing the three props as query string parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosPaunovic authored and loicmathieu committed Jul 29, 2024
1 parent f8eb36e commit dbfdb67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/stores/executions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
},
Expand Down

0 comments on commit dbfdb67

Please sign in to comment.