Hide unlisted toggle when private is active, hide nsfw toggle when no files added
This commit is contained in:
parent
538d109a82
commit
0bc6da89d2
3 changed files with 25 additions and 15 deletions
|
@ -26,7 +26,8 @@ const makeMapStateToProps = () => {
|
|||
private: state.getIn(['compose', 'private']),
|
||||
is_submitting: state.getIn(['compose', 'is_submitting']),
|
||||
is_uploading: state.getIn(['compose', 'is_uploading']),
|
||||
in_reply_to: getStatus(state, state.getIn(['compose', 'in_reply_to']))
|
||||
in_reply_to: getStatus(state, state.getIn(['compose', 'in_reply_to'])),
|
||||
media_count: state.getIn(['compose', 'media_attachments']).size
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -66,7 +67,7 @@ const mapDispatchToProps = function (dispatch) {
|
|||
onChangeVisibility (checked) {
|
||||
dispatch(changeComposeVisibility(checked));
|
||||
},
|
||||
|
||||
|
||||
onChangeListability (checked) {
|
||||
dispatch(changeComposeListability(checked));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue