Bypass boost confirm modal if alt is pressed
This commit is contained in:
1 parent
01e5447e35
commit
f53fb6aa66
5 files changed
+17
-9
No files matched your search
@@ -42,11 +42,15 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
dispatch(reblog(status));
|
||||
},
|
||||
|
||||
onReblog (status) {
|
||||
onReblog (status, e) {
|
||||
if (status.get('reblogged')) {
|
||||
dispatch(unreblog(status));
|
||||
} else {
|
||||
dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog }));
|
||||
if (e.altKey) {
|
||||
this.onModalReblog(status);
|
||||
} else {
|
||||
dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog }));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user