mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-16 17:28:15 +00:00
Add Rebloggability toggles to compose_form_container.jsx
This commit is contained in:
parent
d27c50d5c6
commit
0da23279fa
|
@ -8,6 +8,7 @@ import {
|
||||||
fetchComposeSuggestions,
|
fetchComposeSuggestions,
|
||||||
selectComposeSuggestion,
|
selectComposeSuggestion,
|
||||||
changeComposeSensitivity,
|
changeComposeSensitivity,
|
||||||
|
changeComposeRebloggability,
|
||||||
changeComposeVisibility
|
changeComposeVisibility
|
||||||
} from '../../../actions/compose';
|
} from '../../../actions/compose';
|
||||||
import { makeGetStatus } from '../../../selectors';
|
import { makeGetStatus } from '../../../selectors';
|
||||||
|
@ -61,6 +62,10 @@ const mapDispatchToProps = function (dispatch) {
|
||||||
dispatch(changeComposeSensitivity(checked));
|
dispatch(changeComposeSensitivity(checked));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onChangeRebloggability (checked) {
|
||||||
|
dispatch(changeComposeRebloggability(checked));
|
||||||
|
},
|
||||||
|
|
||||||
onChangeVisibility (checked) {
|
onChangeVisibility (checked) {
|
||||||
dispatch(changeComposeVisibility(checked));
|
dispatch(changeComposeVisibility(checked));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user