Add status reference menu
This commit is contained in:
parent
c656f41b35
commit
44a987810b
8 changed files with 84 additions and 3 deletions
|
@ -13,6 +13,7 @@ import {
|
|||
replyCompose,
|
||||
mentionCompose,
|
||||
directCompose,
|
||||
insertReferenceCompose,
|
||||
} from '../actions/compose';
|
||||
import {
|
||||
blockDomain,
|
||||
|
@ -192,6 +193,10 @@ const mapDispatchToProps = (dispatch, { intl, contextType }) => ({
|
|||
});
|
||||
},
|
||||
|
||||
onReference (status) {
|
||||
dispatch(insertReferenceCompose(0, status.get('url')));
|
||||
},
|
||||
|
||||
onTranslate (status) {
|
||||
if (status.get('translation')) {
|
||||
dispatch(undoStatusTranslation(status.get('id'), status.get('poll')));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue