diff options
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/components/account.js | 2 | ||||
-rw-r--r-- | app/javascript/mastodon/containers/account_container.js | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/mastodon/components/account.js b/app/javascript/mastodon/components/account.js index faf697c63..5a0c1c1c8 100644 --- a/app/javascript/mastodon/components/account.js +++ b/app/javascript/mastodon/components/account.js @@ -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 () { diff --git a/app/javascript/mastodon/containers/account_container.js b/app/javascript/mastodon/containers/account_container.js index 7c77cb764..79e9e6e98 100644 --- a/app/javascript/mastodon/containers/account_container.js +++ b/app/javascript/mastodon/containers/account_container.js @@ -63,6 +63,9 @@ const mapDispatchToProps = (dispatch, { intl }) => ({ } }, + onMuteNotifications (account, notifications) { + dispatch(muteAccount(account.get('id'), notifications)); + } }); export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Account)); |