diff --git a/client/src/components/Workflow/WorkflowRunButton.vue b/client/src/components/Workflow/WorkflowRunButton.vue index 2b1957246cae..8d23de3c65c8 100644 --- a/client/src/components/Workflow/WorkflowRunButton.vue +++ b/client/src/components/Workflow/WorkflowRunButton.vue @@ -13,6 +13,7 @@ interface Props { title?: string; disabled?: boolean; version?: number; + force?: boolean; } const props = defineProps(); @@ -20,6 +21,12 @@ const props = defineProps(); const runPath = computed( () => `/workflows/run?id=${props.id}${props.version !== undefined ? `&version=${props.version}` : ""}` ); + +function forceRunPath() { + if (props.force) { + window.open(runPath.value); + } +}