mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
make the hide/unhide notifications buttons work
This commit is contained in:
parent
0284fd723b
commit
3278c08c29
@ -44,9 +44,11 @@ export default class Account extends ImmutablePureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleMuteNotifications = () => {
|
handleMuteNotifications = () => {
|
||||||
|
this.props.onMuteNotifications(this.props.account, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleUnmuteNotifications = () => {
|
handleUnmuteNotifications = () => {
|
||||||
|
this.props.onMuteNotifications(this.props.account, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
|
@ -63,6 +63,9 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onMuteNotifications (account, notifications) {
|
||||||
|
dispatch(muteAccount(account.get('id'), notifications));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Account));
|
export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Account));
|
||||||
|
Loading…
Reference in New Issue
Block a user