diff options
Diffstat (limited to 'src/components/mao-admin.js')
-rw-r--r-- | src/components/mao-admin.js | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/components/mao-admin.js b/src/components/mao-admin.js index 12a9e16..fc67cc2 100644 --- a/src/components/mao-admin.js +++ b/src/components/mao-admin.js @@ -15,16 +15,6 @@ import { connect } from 'pwa-helpers/connect-mixin.js'; // This element is connected to the Redux store. import { store } from '../store.js'; -//These are the actions needed by this element. -//import { approveHours } from '../actions/firebase.js'; - -// We are lazy loading its reducer. -import firebase from '../reducers/firebase.js'; - -store.addReducers({ - firebase -}); - // These are the shared styles needed by this element. import { SharedStyles } from './shared-styles.js'; import { ButtonSharedStyles } from './button-shared-styles.js' @@ -122,11 +112,11 @@ class MaoAdmin extends connect(store)(PageViewElement) { }} _stateChanged(state) { - this.signedIn = state.firebase.initialized; - this.isAdmin = state.firebase.isAdmin; + this.signedIn = state.firebaseAuth .signedIn; + this.isAdmin = state.firebaseAdmin .isAdmin; - this.requests = state.firebase.requests; - this.registry = state.firebase.compList; + this.requests = state.firebaseAdmin .requests; + this.registry = state.firebaseAdmin .compList; this.updateInformation(); } |