|
@@ -40,8 +40,8 @@
|
|
|
|
|
|
<div class="form-group mt-5 mb-3">
|
|
|
<select class="form-control custom-select" v-model="user.targetLobbyProUid" name="targetLobbyProUid">
|
|
|
- <option value="">Do you wish to speak with particular Doctor?</option>
|
|
|
- <option v-for="pro in prosList" :value="pro.uid" :key="pro.uid">{{pro.name}} - {{pro.type}}</option>
|
|
|
+ <option value>Do you wish to speak with particular Doctor?</option>
|
|
|
+ <option v-for="pro in prosList" :value="pro.uid" :key="pro.uid">{{pro.name}}</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</form>
|
|
@@ -128,7 +128,11 @@ export default {
|
|
|
props: {
|
|
|
lobbyProp: {
|
|
|
type: Object,
|
|
|
- required: true
|
|
|
+ default: {
|
|
|
+ uid: null,
|
|
|
+ name: "Base",
|
|
|
+ pros: []
|
|
|
+ }
|
|
|
},
|
|
|
meetingProp: {
|
|
|
type: Object
|
|
@@ -139,13 +143,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- prosList(){
|
|
|
- return [{
|
|
|
- name: 'Test',
|
|
|
- type: 'Cardiologist',
|
|
|
- uid: 'someuid'
|
|
|
- }]
|
|
|
- }
|
|
|
+ // prosList(){
|
|
|
+ // return [{
|
|
|
+ // name: 'Test',
|
|
|
+ // type: 'Cardiologist',
|
|
|
+ // uid: 'someuid'
|
|
|
+ // }]
|
|
|
+ // }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -178,7 +182,8 @@ export default {
|
|
|
maxRows: 4,
|
|
|
rowHeight: 240,
|
|
|
gridPadding: 8,
|
|
|
- loadingInProgress: false
|
|
|
+ loadingInProgress: false,
|
|
|
+ prosList: []
|
|
|
};
|
|
|
},
|
|
|
sockets: {},
|
|
@@ -664,7 +669,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log(this.lobbyProp)
|
|
|
+ console.log(this.lobbyProp);
|
|
|
if (this.meetingProp) {
|
|
|
this.meetingUid = this.meetingProp.uid;
|
|
|
this.$nextTick(this.initializePublisher);
|
|
@@ -672,8 +677,8 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.sockets.subscribe("meeting-closed", data => {
|
|
|
- this.$eventBus.$emit("leaveMeeting")
|
|
|
- })
|
|
|
+ this.$eventBus.$emit("leaveMeeting");
|
|
|
+ });
|
|
|
|
|
|
let self = this;
|
|
|
|
|
@@ -703,14 +708,15 @@ export default {
|
|
|
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content")
|
|
|
},
|
|
|
error: jXhr => {
|
|
|
- console.error(getSingleError(jXhr))
|
|
|
+ console.error(getSingleError(jXhr));
|
|
|
}
|
|
|
});
|
|
|
- this.$store.dispatch("leaveMeeting")
|
|
|
- this.$socket.emit('meetingLeft')
|
|
|
- this.disconnect()
|
|
|
- alert('Meeting was Closed.')
|
|
|
+ this.$store.dispatch("leaveMeeting");
|
|
|
+ this.$socket.emit("meetingLeft");
|
|
|
+ this.disconnect();
|
|
|
+ alert("Meeting was Closed.");
|
|
|
});
|
|
|
+ this.prosList.push(...this.lobbyProp.pros);
|
|
|
}
|
|
|
};
|
|
|
</script>
|