Skip to content

Commit

Permalink
Add Student: UI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SodhiA1 committed Aug 16, 2024
1 parent bba93ee commit 86f0e5b
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 86f0e5b

Please sign in to comment.