Added login button.
This commit is contained in:
@@ -15,6 +15,7 @@ const initialState =
|
||||
webcamInProgress : false,
|
||||
audioInProgress : false,
|
||||
screenShareInProgress : false,
|
||||
loginInProgress : false,
|
||||
audioOnly : false,
|
||||
audioOnlyInProgress : false,
|
||||
raiseHand : false,
|
||||
@@ -96,6 +97,13 @@ const me = (state = initialState, action) =>
|
||||
return { ...state, screenShareInProgress: flag };
|
||||
}
|
||||
|
||||
case 'SET_LOGIN_IN_PROGRESS':
|
||||
{
|
||||
const { flag } = action.payload;
|
||||
|
||||
return { ...state, loginInProgress: flag };
|
||||
}
|
||||
|
||||
case 'SET_DISPLAY_NAME':
|
||||
{
|
||||
let { displayName } = action.payload;
|
||||
|
||||
@@ -119,6 +119,13 @@ export const resumePeerVideo = (peerName) =>
|
||||
};
|
||||
};
|
||||
|
||||
export const userLogin = () =>
|
||||
{
|
||||
return {
|
||||
type : 'USER_LOGIN'
|
||||
};
|
||||
};
|
||||
|
||||
export const raiseHand = () =>
|
||||
{
|
||||
return {
|
||||
|
||||
@@ -156,6 +156,13 @@ export default ({ dispatch, getState }) => (next) =>
|
||||
break;
|
||||
}
|
||||
|
||||
case 'USER_LOGIN':
|
||||
{
|
||||
client.login();
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case 'LOWER_HAND':
|
||||
{
|
||||
client.sendRaiseHandState(false);
|
||||
|
||||
@@ -134,6 +134,14 @@ export const setMyRaiseHandState = (flag) =>
|
||||
};
|
||||
};
|
||||
|
||||
export const setLoginInProgress = (flag) =>
|
||||
{
|
||||
return {
|
||||
type : 'SET_LOGIN_IN_PROGRESS',
|
||||
payload : { flag }
|
||||
};
|
||||
};
|
||||
|
||||
export const toggleSettings = () =>
|
||||
{
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user