Add boost confirm modal
This commit is contained in:
1 parent
b89f007862
commit
01e5447e35
6 files changed
+109
-6
No files matched your search
@@ -38,11 +38,15 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
dispatch(replyCompose(status, router));
|
||||
},
|
||||
|
||||
onModalReblog (status) {
|
||||
dispatch(reblog(status));
|
||||
},
|
||||
|
||||
onReblog (status) {
|
||||
if (status.get('reblogged')) {
|
||||
dispatch(unreblog(status));
|
||||
} else {
|
||||
dispatch(reblog(status));
|
||||
dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog }));
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user