You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reducer.js 594B

123456789101112131415161718192021222324
  1. import { ReducerRegistry } from '../base/redux';
  2. import { HIDE_RECORDING_LABEL, RECORDING_STATE_UPDATED } from './actionTypes';
  3. /**
  4. * Reduces the Redux actions of the feature features/recording.
  5. */
  6. ReducerRegistry.register('features/recording', (state = {}, action) => {
  7. switch (action.type) {
  8. case HIDE_RECORDING_LABEL:
  9. return {
  10. ...state,
  11. labelDisplayConfiguration: null
  12. };
  13. case RECORDING_STATE_UPDATED:
  14. return {
  15. ...state,
  16. ...action.recordingState
  17. };
  18. default:
  19. return state;
  20. }
  21. });