Reset corrections on input and on turn in

This commit is contained in:
Ramon Wenger 2020-02-03 15:06:43 +01:00
parent ec1d68dd51
commit 6948c6724f
1 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,8 @@
});
}, 500),
saveInput: function (answer) {
// reset corrections on input
this.corrections = '';
this.unsaved = true;
/*
We update the assignment on this component, so the changes are reflected on it. The server does not return
@ -150,6 +152,8 @@
this._save(this.assignment.submission);
},
turnIn() {
// reset corrections on turn in
this.corrections = '';
this.$apollo.mutate({
mutation: UPDATE_ASSIGNMENT_MUTATION,
variables: {