@@ -71,6 +74,7 @@ export default {
},
data() {
return {
+ isLoading: false,
errorResponse: null,
};
},
@@ -85,6 +89,7 @@ export default {
data.conversion_scale = this.calculatorStore.conversionData;
data.converted_grades = this.appState.convertedGradeData;
+ this.isLoading = true;
this.saveImportedGrades(url, JSON.stringify(data))
.then((response) => {
return response.data;
@@ -94,6 +99,7 @@ export default {
})
.catch((error) => {
this.errorResponse = error.response;
+ this.isLoading = false;
});
},
},
diff --git a/course_grader_vue/components/workflow/review-grades.vue b/course_grader_vue/components/workflow/review-grades.vue
index e11ab49..c40966f 100644
--- a/course_grader_vue/components/workflow/review-grades.vue
+++ b/course_grader_vue/components/workflow/review-grades.vue
@@ -105,6 +105,7 @@ export default {
},
data() {
return {
+ isLoading: false,
errorResponse: null,
};
},
@@ -113,6 +114,7 @@ export default {
this.appState.editGrades();
},
submitGrades: function () {
+ this.isLoading = true;
this.submitGraderoster(this.section.graderoster_url, {})
.then((response) => {
return response.data;
@@ -122,6 +124,7 @@ export default {
})
.catch((error) => {
this.errorResponse = error.response;
+ this.isLoading = false;
});
},
},