Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

reducer.js 754B

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