Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

actions.ts 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import {
  2. DELETE_RECENT_LIST_ENTRY,
  3. _STORE_CURRENT_CONFERENCE,
  4. _UPDATE_CONFERENCE_DURATION
  5. } from './actionTypes';
  6. /**
  7. * Deletes a recent list entry based on url and date.
  8. *
  9. * @param {Object} entryId - An object constructed of the url and the date of
  10. * the entry for easy identification.
  11. * @returns {{
  12. * type: DELETE_RECENT_LIST_ENTRY,
  13. * entryId: Object
  14. * }}
  15. */
  16. export function deleteRecentListEntry(entryId: Object) {
  17. return {
  18. type: DELETE_RECENT_LIST_ENTRY,
  19. entryId
  20. };
  21. }
  22. /**
  23. * Action to initiate a new addition to the list.
  24. *
  25. * @param {Object} locationURL - The current location URL.
  26. * @protected
  27. * @returns {{
  28. * type: _STORE_CURRENT_CONFERENCE,
  29. * locationURL: Object
  30. * }}
  31. */
  32. export function _storeCurrentConference(locationURL: Object) {
  33. return {
  34. type: _STORE_CURRENT_CONFERENCE,
  35. locationURL
  36. };
  37. }
  38. /**
  39. * Action to initiate the update of the duration of the last conference.
  40. *
  41. * @param {Object} locationURL - The current location URL.
  42. * @protected
  43. * @returns {{
  44. * type: _UPDATE_CONFERENCE_DURATION,
  45. * locationURL: Object
  46. * }}
  47. */
  48. export function _updateConferenceDuration(locationURL: Object) {
  49. return {
  50. type: _UPDATE_CONFERENCE_DURATION,
  51. locationURL
  52. };
  53. }