|
|
|
@ -18,8 +18,9 @@ import { |
|
|
|
|
setJoinByPhoneDialogVisiblity as setJoinByPhoneDialogVisiblityAction |
|
|
|
|
} from '../actions'; |
|
|
|
|
import { |
|
|
|
|
isJoinByPhoneButtonVisible, |
|
|
|
|
isDeviceStatusVisible, |
|
|
|
|
isDisplayNameRequired, |
|
|
|
|
isJoinByPhoneButtonVisible, |
|
|
|
|
isJoinByPhoneDialogVisible |
|
|
|
|
} from '../functions'; |
|
|
|
|
|
|
|
|
@ -38,6 +39,11 @@ type Props = { |
|
|
|
|
*/ |
|
|
|
|
hasJoinByPhoneButton: boolean, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* If join button is disabled or not. |
|
|
|
|
*/ |
|
|
|
|
joinButtonDisabled: boolean, |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Joins the current meeting. |
|
|
|
|
*/ |
|
|
|
@ -212,6 +218,7 @@ class Prejoin extends Component<Props, State> { |
|
|
|
|
*/ |
|
|
|
|
render() { |
|
|
|
|
const { |
|
|
|
|
joinButtonDisabled, |
|
|
|
|
hasJoinByPhoneButton, |
|
|
|
|
joinConference, |
|
|
|
|
joinConferenceWithoutAudio, |
|
|
|
@ -265,7 +272,7 @@ class Prejoin extends Component<Props, State> { |
|
|
|
|
isOpen = { showJoinByPhoneButtons } |
|
|
|
|
onClose = { _onDropdownClose }> |
|
|
|
|
<ActionButton |
|
|
|
|
disabled = { !name } |
|
|
|
|
disabled = { joinButtonDisabled } |
|
|
|
|
hasOptions = { true } |
|
|
|
|
onClick = { joinConference } |
|
|
|
|
onOptionsClick = { _onOptionsClick } |
|
|
|
@ -310,9 +317,13 @@ class Prejoin extends Component<Props, State> { |
|
|
|
|
* @returns {Object} |
|
|
|
|
*/ |
|
|
|
|
function mapStateToProps(state): Object { |
|
|
|
|
const name = getDisplayName(state); |
|
|
|
|
const joinButtonDisabled = isDisplayNameRequired(state) && !name; |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
joinButtonDisabled, |
|
|
|
|
name, |
|
|
|
|
deviceStatusVisible: isDeviceStatusVisible(state), |
|
|
|
|
name: getDisplayName(state), |
|
|
|
|
roomName: getRoomName(state), |
|
|
|
|
showDialog: isJoinByPhoneDialogVisible(state), |
|
|
|
|
hasJoinByPhoneButton: isJoinByPhoneButtonVisible(state), |
|
|
|
|