aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/store/organizationsMembers
diff options
context:
space:
mode:
authorStas Vilchik <stas-vilchik@users.noreply.github.com>2017-03-31 13:54:46 +0200
committerGitHub <noreply@github.com>2017-03-31 13:54:46 +0200
commitfe716c6dc43d4d7acb437136b1c87902e8ff0bc4 (patch)
tree6b8a18d7a8f76de1fd34be3235d1639477b75d71 /server/sonar-web/src/main/js/store/organizationsMembers
parente660d605a27992d82d901b8fe0b8938da7afb270 (diff)
downloadsonarqube-fe716c6dc43d4d7acb437136b1c87902e8ff0bc4.tar.gz
sonarqube-fe716c6dc43d4d7acb437136b1c87902e8ff0bc4.zip
re-format js code (#1877)
Diffstat (limited to 'server/sonar-web/src/main/js/store/organizationsMembers')
-rw-r--r--server/sonar-web/src/main/js/store/organizationsMembers/actions.js17
-rw-r--r--server/sonar-web/src/main/js/store/organizationsMembers/reducer.js6
2 files changed, 16 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/store/organizationsMembers/actions.js b/server/sonar-web/src/main/js/store/organizationsMembers/actions.js
index dcd2312f9c9..abb41e71624 100644
--- a/server/sonar-web/src/main/js/store/organizationsMembers/actions.js
+++ b/server/sonar-web/src/main/js/store/organizationsMembers/actions.js
@@ -41,14 +41,22 @@ export const actions = {
REMOVE_MEMBER: 'organizations/REMOVE_MEMBER'
};
-export const receiveMembers = (organizationKey: string, members: Array<Member>, stateChanges: MembersState) => ({
+export const receiveMembers = (
+ organizationKey: string,
+ members: Array<Member>,
+ stateChanges: MembersState
+) => ({
type: actions.RECEIVE_MEMBERS,
organization: organizationKey,
members,
stateChanges
});
-export const receiveMoreMembers = (organizationKey: string, members: Array<Member>, stateChanges: MembersState) => ({
+export const receiveMoreMembers = (
+ organizationKey: string,
+ members: Array<Member>,
+ stateChanges: MembersState
+) => ({
type: actions.RECEIVE_MORE_MEMBERS,
organization: organizationKey,
members,
@@ -67,10 +75,7 @@ export const removeMember = (organizationKey: string, member: Member) => ({
member
});
-export const updateState = (
- organizationKey: string,
- stateChanges: MembersState
-) => ({
+export const updateState = (organizationKey: string, stateChanges: MembersState) => ({
type: actions.UPDATE_STATE,
organization: organizationKey,
stateChanges
diff --git a/server/sonar-web/src/main/js/store/organizationsMembers/reducer.js b/server/sonar-web/src/main/js/store/organizationsMembers/reducer.js
index 346b4a26a48..d5906cf3965 100644
--- a/server/sonar-web/src/main/js/store/organizationsMembers/reducer.js
+++ b/server/sonar-web/src/main/js/store/organizationsMembers/reducer.js
@@ -36,7 +36,11 @@ const organizationMembers = (state = {}, action = {}) => {
case actions.UPDATE_STATE:
return { ...state, ...action.stateChanges };
case actions.RECEIVE_MEMBERS:
- return { ...state, ...action.stateChanges, members: action.members.map(member => member.login) };
+ return {
+ ...state,
+ ...action.stateChanges,
+ members: action.members.map(member => member.login)
+ };
case actions.RECEIVE_MORE_MEMBERS:
return {
...state,