actions.js
2 years ago
constants.js
2 years ago
dispatchers.js
2 years ago
index.js
2 years ago
reducer.js
2 years ago
selectors.js
2 years ago
actions.js
26 lines
| 1 | import constants from './constants'; |
| 2 | |
| 3 | export default { |
| 4 | register( items ) { |
| 5 | return { |
| 6 | type: constants.register, |
| 7 | items, |
| 8 | }; |
| 9 | }, |
| 10 | lockActions() { |
| 11 | return { |
| 12 | type: constants.lockActions, |
| 13 | }; |
| 14 | }, |
| 15 | unRegister( types ) { |
| 16 | return { |
| 17 | type: constants.unRegister, |
| 18 | types, |
| 19 | }; |
| 20 | }, |
| 21 | clearDynamicEvents() { |
| 22 | return { |
| 23 | type: constants.clearDynamicEvents, |
| 24 | }; |
| 25 | }, |
| 26 | }; |