mirror of
https://github.com/jcreek/AutomatedAssessmentFeedbackAgent.git
synced 2026-07-13 02:53:49 +00:00
feat(*): Display feedback after upload
This commit is contained in:
@@ -47,9 +47,12 @@ async function handleSubmit(event: Event) {
|
||||
});
|
||||
const result = await response.json();
|
||||
if (response.ok && result.success) {
|
||||
successMsg = result.feedback;
|
||||
// Redirect to /results with feedback in history state
|
||||
window.history.pushState({ feedback: result }, '', '/results');
|
||||
window.location.assign('/results');
|
||||
file = null;
|
||||
textInput = '';
|
||||
return;
|
||||
} else {
|
||||
errorMsg = result.error || 'An error occurred.';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user