Skip to content

Commit

Permalink
use confirm dialog composable
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Nov 25, 2024
1 parent 477546e commit 8979126
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/src/components/Workflow/Editor/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ import { storeToRefs } from "pinia";
import Vue, { computed, nextTick, onUnmounted, ref, unref, watch } from "vue";
import { getUntypedWorkflowParameters } from "@/components/Workflow/Editor/modules/parameters";
import { ConfirmDialog } from "@/composables/confirmDialog";
import { ConfirmDialog, useConfirmDialog } from "@/composables/confirmDialog";
import { useDatatypesMapper } from "@/composables/datatypesMapper";
import { useMagicKeys } from "@/composables/useMagicKeys";
import { useUid } from "@/composables/utils/uid";
Expand Down Expand Up @@ -465,6 +465,8 @@ export default {
}))
);
const { confirm } = useConfirmDialog();
return {
id,
name,
Expand Down Expand Up @@ -507,6 +509,7 @@ export default {
specialWorkflowActivities,
isNewTempWorkflow,
saveWorkflowTitle,
confirm,
};
},
data() {
Expand Down Expand Up @@ -725,7 +728,7 @@ export default {
},
async saveOrCreate() {
if (this.hasInvalidConnections) {
const confirmed = await confirm(
const confirmed = await this.confirm(
`Workflow has invalid connections. You can save the workflow, but it may not run correctly.`,
{
id: "save-workflow-confirmation",
Expand Down

0 comments on commit 8979126

Please sign in to comment.