Skip to content

Commit

Permalink
disable screen when loading transcripts buttons pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltangbcgov committed Oct 21, 2024
1 parent faa3162 commit cdd4207
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/views/StudentProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<!-- Studnet Demo. end-->
<div class="row m-0">
<div class="col-12 px-0">
<v-card class="p-0" color="#f2f2f2">
<v-card class="p-0" color="#f2f2f2" :disabled="tabLoading">
<v-window v-model="tab">
<v-window-item value="gradStatusTab">
<v-tabs v-model="selectedTab" bg-color="primary">
Expand Down Expand Up @@ -620,6 +620,7 @@ export default {
props: {},
data() {
return {
disableScreen: false,
snackbarStore: useSnackbarStore(),
projectedGradStatusWithFinalMarksDialog: false,
projectedGradStatusDialog: false,
Expand Down Expand Up @@ -862,6 +863,7 @@ export default {
});
},
updateStudentReports() {
this.disableScreen = true;
this.selectedTab = 0;
this.tabLoading = true;
GraduationService.updateStudentReports(this.studentId)
Expand All @@ -873,6 +875,7 @@ export default {
this.tabLoading = false;
})
.catch((error) => {
this.tabLoading = false;
if (error.res.status) {
this.snackbarStore.showSnackbar(
"There was an error: " + error.res.status,
Expand Down

0 comments on commit cdd4207

Please sign in to comment.