Flow Tester 실행 후 결과에 따른 페이지 이동 추가

- 실행 성공 시 리스트 페이지로 이동
- 실행 실패 시 실행 상세 페이지로 이동
This commit is contained in:
2025-12-08 20:28:49 +09:00
parent 251bc203d8
commit b585369889

View File

@@ -229,9 +229,18 @@ function runFlow(id) {
.then(data => {
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);
}
}
})
.catch(error => {