From 1b18e2fd31e93aa50dbeb3c21e768be1973baf76 Mon Sep 17 00:00:00 2001 From: hskwon Date: Tue, 9 Dec 2025 11:29:41 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Flow=20Tester=20=EC=9E=AC=EC=8B=A4?= =?UTF-8?q?=ED=96=89=20=EC=8B=9C=20=EC=84=B1=EA=B3=B5=ED=95=98=EB=A9=B4=20?= =?UTF-8?q?=EB=A6=AC=EC=8A=A4=ED=8A=B8=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - run-detail에서 재실행 시 edit과 동일하게 동작 - 성공 시: 리스트 페이지로 이동 - 실패 시: 새 상세 페이지로 이동 --- .../flow-tester/run-detail.blade.php | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) 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 => {