2022-10-28 06:41:12 +00:00
|
|
|
import { IStore } from '../app/types';
|
|
|
|
import { toggleDialog } from '../base/dialog/actions';
|
2020-05-20 10:57:03 +00:00
|
|
|
|
2022-10-28 06:41:12 +00:00
|
|
|
// @ts-ignore
|
2020-04-01 07:47:51 +00:00
|
|
|
import { SecurityDialog } from './components/security-dialog';
|
|
|
|
|
|
|
|
/**
|
2020-07-17 15:48:23 +00:00
|
|
|
* Action that triggers toggle of the security options dialog.
|
2020-04-01 07:47:51 +00:00
|
|
|
*
|
|
|
|
* @returns {Function}
|
|
|
|
*/
|
2020-07-17 15:48:23 +00:00
|
|
|
export function toggleSecurityDialog() {
|
2022-10-28 06:41:12 +00:00
|
|
|
return function(dispatch: IStore['dispatch']) {
|
2020-07-17 15:48:23 +00:00
|
|
|
dispatch(toggleDialog(SecurityDialog));
|
2020-04-01 07:47:51 +00:00
|
|
|
};
|
|
|
|
}
|