about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js
diff options
context:
space:
mode:
authorcwm <chriswmartin@protonmail.com>2018-01-09 09:48:14 -0600
committercwm <chriswmartin@protonmail.com>2018-01-09 09:48:14 -0600
commit6d1c325167d12300e86d678a054777acd5d3077a (patch)
tree900a6e4024d96da2e5b73540c97dbb772f685c80 /app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js
parent7f4374d97dd7dce6ec9f632a3cc8527490cbe2c6 (diff)
Rename key to path in actions and reducers for settings (tootsuite pr #6105)
Diffstat (limited to 'app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js')
-rw-r--r--app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js b/app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js
index 95109fe4d..9585ea556 100644
--- a/app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js
+++ b/app/javascript/flavours/glitch/features/notifications/containers/column_settings_container.js
@@ -18,11 +18,11 @@ const mapStateToProps = state => ({
 
 const mapDispatchToProps = (dispatch, { intl }) => ({
 
-  onChange (key, checked) {
-    if (key[0] === 'push') {
-      dispatch(changePushNotifications(key.slice(1), checked));
+  onChange (path, checked) {
+    if (path[0] === 'push') {
+      dispatch(changePushNotifications(path.slice(1), checked));
     } else {
-      dispatch(changeSetting(['notifications', ...key], checked));
+      dispatch(changeSetting(['notifications', ...path], checked));
     }
   },