fix: Restart action button was not working
This commit is contained in:
parent
3f46007281
commit
0fee24089f
|
|
@ -169,14 +169,15 @@ function show(actionButton) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function rerunAction() {
|
async function rerunAction() {
|
||||||
if (!logEntry.value || !logEntry.value.actionId) {
|
const bindingId = logEntry.value?.bindingId
|
||||||
|
if (!logEntry.value || !bindingId) {
|
||||||
console.error('Cannot rerun: no action ID available')
|
console.error('Cannot rerun: no action ID available')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const startActionArgs = {
|
const startActionArgs = {
|
||||||
"bindingId": logEntry.value.actionId,
|
"bindingId": bindingId,
|
||||||
"arguments": []
|
"arguments": []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -281,13 +282,13 @@ async function renderExecutionResult(res) {
|
||||||
}
|
}
|
||||||
|
|
||||||
executionTrackingId.value = res.logEntry.executionTrackingId
|
executionTrackingId.value = res.logEntry.executionTrackingId
|
||||||
canRerun.value = res.logEntry.executionFinished
|
canRerun.value = res.logEntry.executionFinished && !!res.logEntry.bindingId
|
||||||
canKill.value = res.logEntry.canKill
|
canKill.value = res.logEntry.canKill
|
||||||
|
|
||||||
icon.value = res.logEntry.actionIcon
|
icon.value = res.logEntry.actionIcon
|
||||||
title.value = res.logEntry.actionTitle
|
title.value = res.logEntry.actionTitle
|
||||||
titleTooltip.value = 'Action ID: ' + res.logEntry.actionId + '\nExecution ID: ' + res.logEntry.executionTrackingId
|
titleTooltip.value = 'Action ID: ' + res.logEntry.bindingId + '\nExecution ID: ' + res.logEntry.executionTrackingId
|
||||||
actionId.value = res.logEntry.actionId
|
actionId.value = res.logEntry.bindingId
|
||||||
|
|
||||||
updateDuration(res.logEntry)
|
updateDuration(res.logEntry)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue