Added login button.

This commit is contained in:
Håvar Aambø Fosstveit
2018-06-18 13:33:56 +02:00
parent 6d46a777c0
commit cee74f9b29
9 changed files with 59 additions and 48 deletions
+8
View File
@@ -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;
+7
View File
@@ -119,6 +119,13 @@ export const resumePeerVideo = (peerName) =>
};
};
export const userLogin = () =>
{
return {
type : 'USER_LOGIN'
};
};
export const raiseHand = () =>
{
return {
+7
View File
@@ -156,6 +156,13 @@ export default ({ dispatch, getState }) => (next) =>
break;
}
case 'USER_LOGIN':
{
client.login();
break;
}
case 'LOWER_HAND':
{
client.sendRaiseHandState(false);
+8
View File
@@ -134,6 +134,14 @@ export const setMyRaiseHandState = (flag) =>
};
};
export const setLoginInProgress = (flag) =>
{
return {
type : 'SET_LOGIN_IN_PROGRESS',
payload : { flag }
};
};
export const toggleSettings = () =>
{
return {