disable reaction button when not signed in
This commit is contained in:
parent
01723aef2b
commit
245f5b3f2f
1 changed files with 5 additions and 1 deletions
|
@ -167,7 +167,11 @@ const mapDispatchToProps = (dispatch, { intl, contextType }) => ({
|
||||||
},
|
},
|
||||||
|
|
||||||
onReactionAdd (statusId, name, url) {
|
onReactionAdd (statusId, name, url) {
|
||||||
|
const { signedIn } = this.context.identity;
|
||||||
|
|
||||||
|
if (signedIn) {
|
||||||
dispatch(addReaction(statusId, name, url));
|
dispatch(addReaction(statusId, name, url));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onReactionRemove (statusId, name) {
|
onReactionRemove (statusId, name) {
|
||||||
|
|
Loading…
Reference in a new issue