fix: Flow Tester 재실행 시 성공하면 리스트로 이동
- run-detail에서 재실행 시 edit과 동일하게 동작 - 성공 시: 리스트 페이지로 이동 - 실패 시: 새 상세 페이지로 이동
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user