Commit 9a4a6472596e81f80a0b7eb4721aa8ee2518ff3f
1 parent
01a4a5246d
Exists in
master
and in
2 other branches
hid jitsi ending advert
Showing
2 changed files
with
23 additions
and
9 deletions
Show diff stats
src/pages/Dashboard/LiveOnlineClass.vue
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 | <div |
30 | 30 | class="title side-bar-color font-weight-bold" |
31 | 31 | >Live Online Classes - {{$route.query.chapterName}}</div> |
32 | - <div class="subheading grey--text lighten-1">{{liveLink}}</div> | |
32 | + <!-- <div class="subheading grey--text lighten-1">{{liveLink}}</div> --> | |
33 | 33 | <!-- <div |
34 | 34 | class="subheading grey--text lighten-1" |
35 | 35 | >The session started at 1:00 there is 1 moderator</div>--> |
... | ... | @@ -162,19 +162,16 @@ export default { |
162 | 162 | methods: { |
163 | 163 | async startChat() { |
164 | 164 | if (this.$store.state.role === "PARENT") { |
165 | - | |
166 | - if(this.counter == 0){ | |
165 | + if (this.counter == 0) { | |
167 | 166 | this.startConference(); |
168 | - this.counter +=1 | |
167 | + this.counter += 1; | |
169 | 168 | } |
170 | - | |
171 | 169 | } |
172 | 170 | if (this.$store.state.role === "TEACHER") { |
173 | - if(this.counter == 0){ | |
171 | + if (this.counter == 0) { | |
174 | 172 | this.createRoom(); |
175 | - this.counter +=1 | |
173 | + this.counter += 1; | |
176 | 174 | } |
177 | - | |
178 | 175 | } |
179 | 176 | }, |
180 | 177 | // JITSI CONTAINER |
... | ... | @@ -193,6 +190,8 @@ export default { |
193 | 190 | parentNode: document.getElementById("jitsi-container"), |
194 | 191 | interfaceConfigOverwrite: { |
195 | 192 | filmStripOnly: false, |
193 | + SHOW_PROMOTIONAL_CLOSE_PAGE: false, | |
194 | + SHOW_POWERED_BY: false, | |
196 | 195 | SHOW_JITSI_WATERMARK: false, |
197 | 196 | TOOLBAR_BUTTONS: [ |
198 | 197 | "microphone", |
... | ... | @@ -234,6 +233,9 @@ export default { |
234 | 233 | _this.api.executeCommand("displayName", _this.username); |
235 | 234 | _this.api.executeCommand("password", _this.roomPassword); |
236 | 235 | }); |
236 | + this.api.on("readyToClose", () => { | |
237 | + this.$router.push({name:"Refresh"}) | |
238 | + }); | |
237 | 239 | } catch (error) { |
238 | 240 | console.error("Failed to load Jitsi API", error); |
239 | 241 | } |
... | ... | @@ -323,7 +325,6 @@ export default { |
323 | 325 | var this_ = this; |
324 | 326 | console.log(this.room, this.roomPassword, this.username); |
325 | 327 | |
326 | - | |
327 | 328 | if (username != "" || room != "") { |
328 | 329 | if (window.JitsiMeetExternalAPI) { |
329 | 330 | // var person = prompt("Please enter your name:", "Rabie"); | ... | ... |
src/router/paths.js
... | ... | @@ -48,6 +48,19 @@ export default [{ |
48 | 48 | ) |
49 | 49 | }, |
50 | 50 | { |
51 | + path: '/Refresh', | |
52 | + meta: { | |
53 | + public: true, | |
54 | + }, | |
55 | + name: 'Refresh', | |
56 | + component: () => | |
57 | + import( | |
58 | + /* webpackChunkName: "routes" */ | |
59 | + /* webpackMode: "lazy-once" */ | |
60 | + `@/pages/Common/Refresh.vue` | |
61 | + ) | |
62 | + }, | |
63 | + { | |
51 | 64 | path: '/changepassword', |
52 | 65 | meta: {}, |
53 | 66 | name: 'changepassword', | ... | ... |