diff --git a/src/pages/Dashboard/LiveOnlineClass.vue b/src/pages/Dashboard/LiveOnlineClass.vue index 3814630..2b91a9b 100644 --- a/src/pages/Dashboard/LiveOnlineClass.vue +++ b/src/pages/Dashboard/LiveOnlineClass.vue @@ -29,7 +29,7 @@ -
{{liveLink}}
+ @@ -162,19 +162,16 @@ export default { methods: { async startChat() { if (this.$store.state.role === "PARENT") { - - if(this.counter == 0){ + if (this.counter == 0) { this.startConference(); - this.counter +=1 + this.counter += 1; } - } if (this.$store.state.role === "TEACHER") { - if(this.counter == 0){ + if (this.counter == 0) { this.createRoom(); - this.counter +=1 + this.counter += 1; } - } }, // JITSI CONTAINER @@ -193,6 +190,8 @@ export default { parentNode: document.getElementById("jitsi-container"), interfaceConfigOverwrite: { filmStripOnly: false, + SHOW_PROMOTIONAL_CLOSE_PAGE: false, + SHOW_POWERED_BY: false, SHOW_JITSI_WATERMARK: false, TOOLBAR_BUTTONS: [ "microphone", @@ -234,6 +233,9 @@ export default { _this.api.executeCommand("displayName", _this.username); _this.api.executeCommand("password", _this.roomPassword); }); + this.api.on("readyToClose", () => { + this.$router.push({name:"Refresh"}) + }); } catch (error) { console.error("Failed to load Jitsi API", error); } @@ -323,7 +325,6 @@ export default { var this_ = this; console.log(this.room, this.roomPassword, this.username); - if (username != "" || room != "") { if (window.JitsiMeetExternalAPI) { // var person = prompt("Please enter your name:", "Rabie"); diff --git a/src/router/paths.js b/src/router/paths.js index efb5682..85ebae1 100644 --- a/src/router/paths.js +++ b/src/router/paths.js @@ -48,6 +48,19 @@ export default [{ ) }, { + path: '/Refresh', + meta: { + public: true, + }, + name: 'Refresh', + component: () => + import( + /* webpackChunkName: "routes" */ + /* webpackMode: "lazy-once" */ + `@/pages/Common/Refresh.vue` + ) + }, + { path: '/changepassword', meta: {}, name: 'changepassword',