parent
2de9fdcf12
commit
3806e76576
|
|
@ -115,6 +115,18 @@ graphql(`
|
|||
}
|
||||
`);
|
||||
|
||||
graphql(`
|
||||
fragment AssignmentParts on AssignmentNode {
|
||||
id
|
||||
title
|
||||
assignment
|
||||
solution
|
||||
submission {
|
||||
...SubmissionParts
|
||||
}
|
||||
}
|
||||
`);
|
||||
|
||||
const { me } = getMe();
|
||||
|
||||
const { result, onResult } = useQuery(
|
||||
|
|
@ -362,9 +374,9 @@ const saveInput = (answer: string) => {
|
|||
corrections.value = '';
|
||||
unsaved.value = true;
|
||||
/*
|
||||
We update the assignment on this component, so the changes are reflected on it. The server does not return
|
||||
the updated entity, to prevent the UI to update when the user is entering his input
|
||||
*/
|
||||
We update the assignment on this component, so the changes are reflected on it. The server does not return
|
||||
the updated entity, to prevent the UI to update when the user is entering his input
|
||||
*/
|
||||
assignment.value.submission.text = answer;
|
||||
_save(assignment.value.submission);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue