fix: #860 respect popupOnStart even if the action has args.

This commit is contained in:
jamesread 2026-02-15 00:31:26 +00:00
parent 544515c2a6
commit 903fd15bdb
1 changed files with 7 additions and 1 deletions

View File

@ -73,6 +73,7 @@ const confirmationChecked = ref(false)
const hasConfirmation = ref(false)
const formErrors = ref({})
const actionArguments = ref([])
const popupOnStart = ref('')
// Computed properties
@ -93,6 +94,7 @@ async function setup() {
title.value = action.title
icon.value = action.icon
popupOnStart.value = action.popupOnStart || ''
actionArguments.value = action.arguments || []
argValues.value = {}
formErrors.value = {}
@ -418,7 +420,11 @@ async function handleSubmit(event) {
try {
const response = await startAction(argvs)
router.push(`/logs/${response.executionTrackingId}`)
if (popupOnStart.value && popupOnStart.value.includes('execution-dialog')) {
router.push(`/logs/${response.executionTrackingId}`)
} else {
router.back()
}
} catch (err) {
console.error('Failed to start action:', err)
}