Permit post has media_attachments and polls
This commit is contained in:
parent
7e8253e87b
commit
081439a7dd
4 changed files with 3 additions and 8 deletions
|
@ -3,7 +3,7 @@ import PollButton from '../components/poll_button';
|
|||
import { addPoll, removePoll } from '../../../actions/compose';
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
unavailable: state.getIn(['compose', 'is_uploading']) || (state.getIn(['compose', 'media_attachments']).size > 0),
|
||||
unavailable: false,
|
||||
active: state.getIn(['compose', 'poll']) !== null,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue