diff --git a/src/pages/Authentication/Login.vue b/src/pages/Authentication/Login.vue index b1394ad..89bed5b 100644 --- a/src/pages/Authentication/Login.vue +++ b/src/pages/Authentication/Login.vue @@ -194,6 +194,7 @@ export default { /* if zero element of false students list is > 0 then make first student as defalut selected */ if (indexStatusFalse[0] > 0) { this.selectedStudent = response.data.data.students[0]._id; + this.$store.dispatch("SET_ACTIVE_STUDENT",response.data.data.students[0]) } // console.log("indexStatusFalse - ", indexStatusFalse); /* if false student is the first one in the list then see if the next is also false */ @@ -226,6 +227,7 @@ export default { } else { this.selectedStudent = response.data.data.students[counter]._id; + this.$store.dispatch("SET_ACTIVE_STUDENT",response.data.data.students[counter]) var studentName = response.data.data.students[counter].name; localStorage.setItem("studentName", studentName); localStorage.setItem( diff --git a/src/pages/Dashboard/dashboard.vue b/src/pages/Dashboard/dashboard.vue index c2f6ae0..3b39d58 100644 --- a/src/pages/Dashboard/dashboard.vue +++ b/src/pages/Dashboard/dashboard.vue @@ -411,6 +411,7 @@ + Students
+ +