diff --git a/resources/views/dev-tools/flow-tester/run-detail.blade.php b/resources/views/dev-tools/flow-tester/run-detail.blade.php index 706e5808..1af5b3ce 100644 --- a/resources/views/dev-tools/flow-tester/run-detail.blade.php +++ b/resources/views/dev-tools/flow-tester/run-detail.blade.php @@ -510,14 +510,23 @@ function runFlow(id) { }) .then(response => response.json()) .then(data => { - // 새 실행 결과 페이지로 이동 - if (data.run_id) { - window.location.href = `/dev-tools/flow-tester/runs/${data.run_id}`; - } else { - btn.disabled = false; - btn.innerHTML = originalHtml; + if (data.success) { + // 성공 시 리스트 페이지로 이동 showToast(data.message || '실행 완료', 'success'); - location.reload(); + setTimeout(() => { + window.location.href = '{{ route("dev-tools.flow-tester.index") }}'; + }, 1000); + } else { + // 실패 시 새 실행 상세 페이지로 이동 + showToast('실행 실패: ' + (data.message || '알 수 없는 오류'), 'error'); + if (data.run_id) { + setTimeout(() => { + window.location.href = `/dev-tools/flow-tester/runs/${data.run_id}`; + }, 1500); + } else { + btn.disabled = false; + btn.innerHTML = originalHtml; + } } }) .catch(error => {