TT#47712 As a Customer, I want to initiate a conference by clicking a button on the start page

- Must see a auto generated url after entering the JoinScreen (#70205)
- Must get forwarded to a auto generated conference URL, consequently the JoinScreen (#70204)

Change-Id: I3738461401b7d49ae0e0738a7e79b00eb96e9c42
changes/20/35220/4
Carlo Venusino 6 years ago
parent 8f0fa87c5d
commit 79fb9c9e08

@ -48,6 +48,9 @@
<script>
import CscMedia from '../../CscMedia'
import {
randInRange
} from '../../../helpers/math-helper'
import {
QBtn,
QInput
@ -79,6 +82,11 @@
QInput,
CscMedia
},
mounted() {
if(!this.conferenceId){
this.conferenceIdChanged(this.createConferenceId())
}
},
computed: {
contentClasses() {
let classes = ['col', 'col-4', 'text-center'];
@ -127,6 +135,12 @@
},
showShareDialog() {
this.$refs.shareDialog.open();
},
createConferenceId() {
const prefixes = ['conf', 'room', 'space'];
const randPrefixIndex = randInRange(0, prefixes.length -1);
const randSuffix = randInRange(100000, 999999);
return prefixes[randPrefixIndex] + randSuffix;
}
}
}

@ -0,0 +1,3 @@
export function randInRange(min, max){
return Math.floor(Math.random() * (max - min + 1)) + min;
}
Loading…
Cancel
Save