diff options
author | cwm <chriswmartin@protonmail.com> | 2017-12-30 11:45:01 -0600 |
---|---|---|
committer | cwm <chriswmartin@protonmail.com> | 2017-12-30 11:45:01 -0600 |
commit | 0dce26b82b69f08ba559c08befe941f8839f3ce7 (patch) | |
tree | f547df18feb840352b30cb464e02a18069e828ac /app/javascript/flavours/glitch/actions/push_notifications/index.js | |
parent | 65c87ca0ae20eb5dc62751047bda3e8b11e37ce0 (diff) |
web push updates (tootsuite PRs #5879, #5941, #6047)
Diffstat (limited to 'app/javascript/flavours/glitch/actions/push_notifications/index.js')
-rw-r--r-- | app/javascript/flavours/glitch/actions/push_notifications/index.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/actions/push_notifications/index.js b/app/javascript/flavours/glitch/actions/push_notifications/index.js new file mode 100644 index 000000000..376b55b62 --- /dev/null +++ b/app/javascript/flavours/glitch/actions/push_notifications/index.js @@ -0,0 +1,23 @@ +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, +}; + +export function changeAlerts(key, value) { + return dispatch => { + dispatch(setAlerts(key, value)); + dispatch(saveSettings()); + }; +} |