Add boost confirm modal

This commit is contained in:
blackle 2017-04-10 22:28:52 -04:00
parent b89f007862
commit 01e5447e35
6 changed files with 109 additions and 6 deletions

View file

@ -82,11 +82,15 @@ const Status = React.createClass({
this.props.dispatch(replyCompose(status, this.context.router));
},
handleModalReblog (status) {
this.props.dispatch(reblog(status));
},
handleReblogClick (status) {
if (status.get('reblogged')) {
this.props.dispatch(unreblog(status));
} else {
this.props.dispatch(reblog(status));
this.props.dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog }));
}
},