diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-02 14:09:57 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-02 14:09:57 +0100 |
commit | 65647a24720c1fa1dda832a8ce0f48f48f4cf358 (patch) | |
tree | 9f29be394bf72d110c773cc67610903118304718 /app/assets/javascripts/components/features/notifications/containers | |
parent | 75122e162d7b933d34c6b694c6c5a0b2533f547f (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.jsx | 17 |
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); |