2020-04-01 07:47:51 +00:00
|
|
|
// @flow
|
|
|
|
|
2020-07-17 15:48:23 +00:00
|
|
|
import { toggleDialog } from '../base/dialog';
|
2020-05-20 10:57:03 +00:00
|
|
|
|
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() {
|
2020-04-01 07:47:51 +00:00
|
|
|
return function(dispatch: (Object) => Object) {
|
2020-07-17 15:48:23 +00:00
|
|
|
dispatch(toggleDialog(SecurityDialog));
|
2020-04-01 07:47:51 +00:00
|
|
|
};
|
|
|
|
}
|