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.native.js 867B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // @flow
  2. import { type Dispatch } from 'redux';
  3. import { appNavigate } from '../app/actions';
  4. import { openDialog } from '../base/dialog';
  5. import { DisableLobbyModeDialog, EnableLobbyModeDialog } from './components/native';
  6. export * from './actions.any';
  7. /**
  8. * Cancels the ongoing knocking and abandons the join flow.
  9. *
  10. * @returns {Function}
  11. */
  12. export function cancelKnocking() {
  13. return async (dispatch: Dispatch<any>) => {
  14. dispatch(appNavigate(undefined));
  15. };
  16. }
  17. /**
  18. * Action to show the dialog to disable lobby mode.
  19. *
  20. * @returns {showNotification}
  21. */
  22. export function showDisableLobbyModeDialog() {
  23. return openDialog(DisableLobbyModeDialog);
  24. }
  25. /**
  26. * Action to show the dialog to enable lobby mode.
  27. *
  28. * @returns {showNotification}
  29. */
  30. export function showEnableLobbyModeDialog() {
  31. return openDialog(EnableLobbyModeDialog);
  32. }