about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/notifications/containers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-02 14:09:57 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-02 14:09:57 +0100
commit65647a24720c1fa1dda832a8ce0f48f48f4cf358 (patch)
tree9f29be394bf72d110c773cc67610903118304718 /app/assets/javascripts/components/features/notifications/containers
parent75122e162d7b933d34c6b694c6c5a0b2533f547f (diff)
See #244 - Added notifications column settings to filter what's displayed
in the column and what appears as desktop notifications. Settings do not
persist yet
Diffstat (limited to 'app/assets/javascripts/components/features/notifications/containers')
-rw-r--r--app/assets/javascripts/components/features/notifications/containers/column_settings_container.jsx17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/features/notifications/containers/column_settings_container.jsx b/app/assets/javascripts/components/features/notifications/containers/column_settings_container.jsx
new file mode 100644
index 000000000..6907fd351
--- /dev/null
+++ b/app/assets/javascripts/components/features/notifications/containers/column_settings_container.jsx
@@ -0,0 +1,17 @@
+import { connect } from 'react-redux';
+import ColumnSettings from '../components/column_settings';
+import { changeNotificationsSetting } from '../../../actions/notifications';
+
+const mapStateToProps = state => ({
+  settings: state.getIn(['notifications', 'settings'])
+});
+
+const mapDispatchToProps = dispatch => ({
+
+  onChange (key, checked) {
+    dispatch(changeNotificationsSetting(key, checked));
+  }
+
+});
+
+export default connect(mapStateToProps, mapDispatchToProps)(ColumnSettings);