Commit 92c6232a67aef70c207ed471199bca058036c700

Authored by Shikha Mishra
1 parent b6e4f6eaad

password required and loader issue solved

Showing 1 changed file with 10 additions and 2 deletions   Show diff stats
src/pages/Dashboard/LiveOnlineClass.vue
... ... @@ -69,7 +69,7 @@
69 69 </v-flex>
70 70  
71 71 <!-- JOIN OR END SESSION -->
72   - <v-flex>
  72 + <v-flex v-if="showStartSessionButton">
73 73 <div>
74 74 <v-btn
75 75 round
... ... @@ -163,6 +163,7 @@ export default {
163 163 roomPassword: "",
164 164 counter: 0,
165 165 appLink: "",
  166 + showStartSessionButton: true,
166 167 };
167 168 },
168 169 methods: {
... ... @@ -176,6 +177,7 @@ export default {
176 177 if (isMobile) {
177 178 // console.log("==PARENT=appLink==", this.appLink);
178 179 window.open(this.appLink);
  180 + this.showLoader = false;
179 181 } else {
180 182 this.startConference();
181 183 this.counter += 1;
... ... @@ -251,7 +253,10 @@ export default {
251 253 });
252 254  
253 255 _this.api.on("readyToClose", () => {
254   - this.$router.push({ name: "Refresh" });
  256 + // this.$router.push({ name: "Refresh" });
  257 + let jitsi = document.getElementById("jitsi-container");
  258 + jitsi.innerHTML = "";
  259 + this.showStartSessionButton = true;
255 260 });
256 261 } catch (error) {
257 262 // console.error("Failed to load Jitsi API", error);
... ... @@ -304,6 +309,8 @@ export default {
304 309 if (isMobile) {
305 310 // console.log("==TEACHER=appLink==", this.appLink);
306 311 window.open(this.appLink);
  312 + this.showLoader = false;
  313 + this.showStartSessionButton = false;
307 314 } else {
308 315 if (window.JitsiMeetExternalAPI) {
309 316 // var person = prompt("Please enter your name:", "Rabie");
... ... @@ -319,6 +326,7 @@ export default {
319 326 }
320 327 } else alert("Jitsi Meet API script not loaded");
321 328 this_.startConference();
  329 + this.showStartSessionButton = false;
322 330 }
323 331 }
324 332 })
... ...