]> cat aescling's git repositories - mastodon.git/commitdiff
make the hide/unhide notifications buttons work
authorSurinna Curtis <ekiru.0@gmail.com>
Sat, 9 Sep 2017 10:16:27 +0000 (05:16 -0500)
committerSurinna Curtis <ekiru.0@gmail.com>
Thu, 14 Sep 2017 02:47:30 +0000 (21:47 -0500)
app/javascript/mastodon/components/account.js
app/javascript/mastodon/containers/account_container.js

index faf697c639c4c6f40a0aa994f63801b79bbe8795..5a0c1c1c82a942ed985d26e4db4b4b7fb1c44fb8 100644 (file)
@@ -44,9 +44,11 @@ export default class Account extends ImmutablePureComponent {
   }
 
   handleMuteNotifications = () => {
+    this.props.onMuteNotifications(this.props.account, true);
   }
 
   handleUnmuteNotifications = () => {
+    this.props.onMuteNotifications(this.props.account, false);    
   }
 
   render () {
index 7c77cb76495888c6435f1c7bf42ae2a9b3813455..79e9e6e9827d36502bf8efa05c812877a37685c8 100644 (file)
@@ -63,6 +63,9 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
     }
   },
 
+  onMuteNotifications (account, notifications) {
+    dispatch(muteAccount(account.get('id'), notifications));
+  }
 });
 
 export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Account));
This page took 0.023481 seconds and 3 git commands to generate.