Skip to content

Commit

Permalink
feat(ui): add cancel button to execution resume dialog (#5859)
Browse files Browse the repository at this point in the history
Co-authored-by: MilosPaunovic <paun992@hotmail.com>
  • Loading branch information
RyanVem and MilosPaunovic authored Nov 13, 2024
1 parent 4e675f2 commit 9a402e2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ui/src/components/executions/Resume.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<inputs-form :initial-inputs="inputsList" :execution="execution" v-model="inputs" />
</el-form>
<template #footer>
<el-button @click="cancel()">
{{ $t('cancel') }}
</el-button>
<el-button :icon="PlayBox" type="primary" @click="resumeWithInputs($refs.form)" native-type="submit">
{{ $t('resume') }}
</el-button>
Expand Down Expand Up @@ -97,6 +100,16 @@
this.$toast().success(this.$t("resumed done"));
});
},
cancel() {
this.$store
.dispatch("execution/kill", {
id: this.execution.id,
})
.then(() => {
this.isDrawerOpen = false;
this.$toast().success(this.$t("killed done"));
});
},
loadDefinition() {
this.$store.dispatch("execution/loadFlowForExecution", {
flowId: this.execution.flowId,
Expand Down

0 comments on commit 9a402e2

Please sign in to comment.