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.ts 420B

12345678910111213141516
  1. import { IStore } from '../app/types';
  2. import { toggleDialog } from '../base/dialog/actions';
  3. // @ts-ignore
  4. import { SecurityDialog } from './components/security-dialog';
  5. /**
  6. * Action that triggers toggle of the security options dialog.
  7. *
  8. * @returns {Function}
  9. */
  10. export function toggleSecurityDialog() {
  11. return function(dispatch: IStore['dispatch']) {
  12. dispatch(toggleDialog(SecurityDialog));
  13. };
  14. }