aboutsummaryrefslogtreecommitdiff
path: root/src/reducers
diff options
context:
space:
mode:
authorMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-09-15 13:12:12 -0400
committerMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-09-15 13:12:12 -0400
commit7073f6545544277673c0806606834225907797d7 (patch)
tree6054754d879d12ad6ffa996ca7ee478ba877ae91 /src/reducers
parent79745ab407f66eda13f643193e67159aef547bd7 (diff)
Created way to get user data for admins, except for username. May need to change database or figure something out.
Diffstat (limited to 'src/reducers')
-rw-r--r--src/reducers/firebaseAdmin.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/reducers/firebaseAdmin.js b/src/reducers/firebaseAdmin.js
index 205d321..810ceb3 100644
--- a/src/reducers/firebaseAdmin.js
+++ b/src/reducers/firebaseAdmin.js
@@ -11,11 +11,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
import {
UPDATE_ADMIN,
UPDATE_ADMIN_REQUESTS,
- UPDATE_ADMIN_COMP_LIST
+ UPDATE_ADMIN_COMP_LIST,
+ UPDATE_ADMIN_USER_LIST
}
from '../actions/firebaseAdmin.js';
-const firebaseAdmin = (state = {isAdmin: false, requests: [], compList: []}, action) => {
+const firebaseAdmin = (state = {isAdmin: false, requests: [], compList: [], userList: []}, action) => {
switch (action.type) {
case UPDATE_ADMIN:
return {
@@ -38,6 +39,13 @@ const firebaseAdmin = (state = {isAdmin: false, requests: [], compList: []}, act
}
break;
+ case UPDATE_ADMIN_USER_LIST:
+ return {
+ ...state,
+ userList : action.payload
+ }
+ break;
+
default:
return state;
}