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.

actions.web.ts 524B

12345678910111213141516171819
  1. import { IStore } from '../app/types';
  2. import { toggleDialog } from '../base/dialog/actions';
  3. import LanguageSelectorDialogWeb from './components/LanguageSelectorDialog.web';
  4. export * from './actions.any';
  5. /**
  6. * Signals that the local user has toggled the LanguageSelector button.
  7. *
  8. * @returns {{
  9. * type: UPDATE_TRANSLATION_LANGUAGE
  10. * }}
  11. */
  12. export function toggleLanguageSelectorDialog() {
  13. return function(dispatch: IStore['dispatch']) {
  14. dispatch(toggleDialog(LanguageSelectorDialogWeb));
  15. };
  16. }