From 898c80f271a011522a5c0385b45f275857237c7f Mon Sep 17 00:00:00 2001 From: amber Date: Fri, 18 Sep 2020 10:46:47 +0530 Subject: [PATCH] added heading --- src/pages/Authentication/Login.vue | 2 ++ src/pages/Dashboard/dashboard.vue | 14 +++++++++++++- src/store/store.js | 13 +++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) 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
+ +