Skip to content

Commit

Permalink
Merge pull request #1847 from bcgov/fix/summerColl
Browse files Browse the repository at this point in the history
Add Student: UI fix
  • Loading branch information
mightycox authored Aug 16, 2024
2 parents bba93ee + 86f0e5b commit 4eb91b6
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
:selected-student-ids="studentForEdit"
:is-final-sign-off="isFinalSignOff"
@reload-students="reloadStudentsFlag = true"
@close="closeAndLoadStudents"
@close="closeEditAndLoadStudents"
/>
</v-bottom-sheet>
<v-bottom-sheet
Expand All @@ -131,7 +131,7 @@
>
<AddStudentDetails
@reload-students="reloadStudentsFlag = true"
@close="closeAndLoadStudents"
@close="closeAddAndLoadStudents"
@open-edit="closeAddStudentWindow"
/>
</v-bottom-sheet>
Expand Down Expand Up @@ -238,13 +238,20 @@ export default {
this.studentForEdit.push(selectedStudent?.sdcSchoolCollectionStudentID);
this.editStudentSheet = true;
},
closeAndLoadStudents() {
closeEditAndLoadStudents() {
this.editStudentSheet = !this.editStudentSheet;
if (this.reloadStudentsFlag === true) {
this.loadStudents();
}
this.reloadStudentsFlag = false;
},
closeAddAndLoadStudents() {
this.addStudentSheet = !this.addStudentSheet;
if (this.reloadStudentsFlag === true) {
this.loadStudents();
}
this.reloadStudentsFlag = false;
},
closeAddStudentWindow($event) {
this.addStudentSheet = !this.addStudentSheet;
this.editStudent($event);
Expand Down

0 comments on commit 4eb91b6

Please sign in to comment.