client/src/reducers/syncReducer.js
changeset 130 78246db1cbac
parent 129 d48946d164c6
equal deleted inserted replaced
129:d48946d164c6 130:78246db1cbac
    11   }
    11   }
    12 }
    12 }
    13 
    13 
    14 export const isSynchronizing = (state = false, action) => {
    14 export const isSynchronizing = (state = false, action) => {
    15   switch (action.type) {
    15   switch (action.type) {
    16     case types.SYNC_DO_SYNC:
    16     case types.SYNC_START_SYNC:
    17       return true;
    17       return true;
    18     case types.SYNC_END_SYNC:
    18     case types.SYNC_END_SYNC:
    19       return false;
    19       return false;
    20     default:
    20     default:
    21       return state;
    21       return state;