ali %!s(int64=2) %!d(string=hai) anos
pai
achega
820a6e2744

+ 6 - 4
src/components/Widgets/Test/ShowTestGradeForGrader/ShowTestGradeForGrader.vue

@@ -280,22 +280,24 @@ export default {
     confirmScores () {
       this.answerBook.loading = true
       APIGateway.answerBook.confirmScores(this.$route.params.answer_book_id)
-        .then((answerBook) => {
-          this.loadAnswerBook(answerBook)
+        .then(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
         .catch(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
     },
     confirmUngradable () {
       this.answerBook.loading = true
       APIGateway.answerBook.confirmUngradable(this.$route.params.answer_book_id)
-        .then((answerBook) => {
-          this.loadAnswerBook(answerBook)
+        .then(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
         .catch(() => {
+          this.getAnswerBook()
           this.answerBook.loading = false
         })
     }