From e05668b28f8a358d7b5f138ceb7fc77782a6ab96 Mon Sep 17 00:00:00 2001 From: Shikha Mishra Date: Fri, 28 Aug 2020 17:30:01 +0530 Subject: [PATCH] Clear preavious data while selecting class from drop-down in Exam Attendence and show password in video sharing link --- src/pages/Dashboard/LiveOnlineClass.vue | 14 +++++--------- src/pages/Dashboard/dashboard.vue | 2 +- src/pages/Exam/examAttendence.vue | 1 + 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/pages/Dashboard/LiveOnlineClass.vue b/src/pages/Dashboard/LiveOnlineClass.vue index 8894415..d01a719 100644 --- a/src/pages/Dashboard/LiveOnlineClass.vue +++ b/src/pages/Dashboard/LiveOnlineClass.vue @@ -151,7 +151,6 @@ export default { // JITSI CONTAINER liveLink: "", - livePassword: "", token: "", selectStudents: {}, classRules: [(v) => !!v || " Class Name is required"], @@ -230,15 +229,16 @@ export default { disableSimulcast: false, }, teacherName: "", - romm: "", + room: "", }; _this.api = new JitsiMeetExternalAPI(domain, options); // console.log("this.api ", this.api); _this.api.addEventListener("videoConferenceJoined", () => { - // console.log("Local User Joined"); this.showLoader = false; - _this.api.executeCommand("displayName", _this.username); - _this.api.executeCommand("password", _this.roomPassword); + setTimeout(() => { + _this.api.executeCommand("displayName", _this.username); + _this.api.executeCommand("password", _this.roomPassword); + }, 1000); }); _this.api.on("readyToClose", () => { @@ -310,7 +310,6 @@ export default { }, async studentClasses() { this.liveLink = ""; - this.livePassword = ""; this.room = ""; this.username = ""; this.roomPassword = ""; @@ -336,14 +335,11 @@ export default { this.studentBtn = ""; } else { this.liveLink = response.data.data[0].link; - this.livePassword = response.data.data[0].password; var room = response.data.data[0].roomName; var username = this.currentUser; var roomPassword = response.data.data[0].password; var this_ = this; // console.log(this.room, this.roomPassword, this.username); - // console.log("live session link", this.liveLink); - // console.log("live session password", this.livePassword); if (username != "" || room != "") { if (window.JitsiMeetExternalAPI) { diff --git a/src/pages/Dashboard/dashboard.vue b/src/pages/Dashboard/dashboard.vue index 8741c5b..c440b96 100644 --- a/src/pages/Dashboard/dashboard.vue +++ b/src/pages/Dashboard/dashboard.vue @@ -631,7 +631,7 @@ - --> + --> diff --git a/src/pages/Exam/examAttendence.vue b/src/pages/Exam/examAttendence.vue index c048db4..08515d5 100644 --- a/src/pages/Exam/examAttendence.vue +++ b/src/pages/Exam/examAttendence.vue @@ -636,6 +636,7 @@ export default { // this.subjects = this.classList[i].subjects; } } + this.examData = []; http() .get( "/getSectionsList", -- 2.0.0