2017-12-24 04:47:35 +01:00
|
|
|
import {
|
|
|
|
SET_BROWSER_SUPPORT,
|
|
|
|
SET_SUBSCRIPTION,
|
|
|
|
CLEAR_SUBSCRIPTION,
|
|
|
|
SET_ALERTS,
|
|
|
|
setAlerts,
|
|
|
|
} from './setter';
|
|
|
|
import { register, saveSettings } from './registerer';
|
|
|
|
|
|
|
|
export {
|
|
|
|
SET_BROWSER_SUPPORT,
|
|
|
|
SET_SUBSCRIPTION,
|
|
|
|
CLEAR_SUBSCRIPTION,
|
|
|
|
SET_ALERTS,
|
|
|
|
register,
|
|
|
|
};
|
|
|
|
|
2018-01-02 13:50:54 +01:00
|
|
|
export function changeAlerts(path, value) {
|
2017-12-24 04:47:35 +01:00
|
|
|
return dispatch => {
|
2018-01-02 13:50:54 +01:00
|
|
|
dispatch(setAlerts(path, value));
|
2017-12-24 04:47:35 +01:00
|
|
|
dispatch(saveSettings());
|
|
|
|
};
|
|
|
|
}
|