|
@@ -143,27 +143,27 @@ export default {
|
|
|
this.rowHeight = (windowHeight - this.gridPadding * (this.maxRows + 1)) / this.maxRows;
|
|
|
|
|
|
//let cols = Math.ceil(Math.sqrt(this.videos.length));
|
|
|
- let cols = 1
|
|
|
- let rows = Math.ceil(this.videos.length / cols)
|
|
|
+ let cols = 1;
|
|
|
+ let rows = Math.ceil(this.videos.length / cols);
|
|
|
|
|
|
- let elementsLastRow = this.videos.length % cols
|
|
|
- let lastNormalIndex = this.videos.length - elementsLastRow
|
|
|
+ let elementsLastRow = this.videos.length % cols;
|
|
|
+ let lastNormalIndex = this.videos.length - elementsLastRow;
|
|
|
|
|
|
if (elementsLastRow) {
|
|
|
- this.maxCols = cols * elementsLastRow
|
|
|
+ this.maxCols = cols * elementsLastRow;
|
|
|
} else {
|
|
|
- this.maxCols = cols
|
|
|
+ this.maxCols = cols;
|
|
|
}
|
|
|
|
|
|
//let colsPerElement = this.maxCols / cols;
|
|
|
- let rowsPerElement = this.maxRows / rows
|
|
|
+ let rowsPerElement = this.maxRows / rows;
|
|
|
|
|
|
- let colsPerElement = 1
|
|
|
+ let colsPerElement = 1;
|
|
|
|
|
|
- let colsLastRow = Math.ceil(this.maxCols / elementsLastRow)
|
|
|
+ let colsLastRow = Math.ceil(this.maxCols / elementsLastRow);
|
|
|
|
|
|
- let cntX = 0
|
|
|
- let cntY = 0
|
|
|
+ let cntX = 0;
|
|
|
+ let cntY = 0;
|
|
|
|
|
|
for (let [index, video] of this.videos.entries()) {
|
|
|
video.i = index;
|
|
@@ -499,19 +499,23 @@ export default {
|
|
|
});
|
|
|
|
|
|
this.$eventBus.$on("leaveMeeting", () => {
|
|
|
- $.ajax({
|
|
|
- url: "/associate/meeting/leave",
|
|
|
- method: "POST",
|
|
|
- headers: {
|
|
|
- "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content")
|
|
|
- },
|
|
|
- error: jXhr => {
|
|
|
- console.error(getSingleError(jXhr));
|
|
|
- }
|
|
|
- });
|
|
|
+ // $.ajax({
|
|
|
+ // url: "/associate/meeting/leave",
|
|
|
+ // method: "POST",
|
|
|
+ // headers: {
|
|
|
+ // "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content")
|
|
|
+ // },
|
|
|
+ // error: jXhr => {
|
|
|
+ // console.error(getSingleError(jXhr));
|
|
|
+ // }
|
|
|
+ // });
|
|
|
this.$store.dispatch("leaveMeeting");
|
|
|
this.disconnect();
|
|
|
});
|
|
|
+
|
|
|
+ if (this.meeting.uid) {
|
|
|
+ this.getToken();
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|