Adding media controller, 1 webm/compose form allowed, previews generated
This commit is contained in:
parent
183a23943b
commit
bd5ad304ba
7 changed files with 42 additions and 6 deletions
|
@ -40,8 +40,9 @@ const Status = React.createClass({
|
|||
if (e.button === 0) {
|
||||
e.preventDefault();
|
||||
hashHistory.push(`/accounts/${id}`);
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
e.stopPropagation();
|
||||
},
|
||||
|
||||
render () {
|
||||
|
|
|
@ -25,9 +25,11 @@ const UploadForm = React.createClass({
|
|||
);
|
||||
}.bind(this));
|
||||
|
||||
const noMoreAllowed = (this.props.media.some(m => m.get('type') === 'video')) || (this.props.media.size > 3);
|
||||
|
||||
return (
|
||||
<div style={{ marginBottom: '20px', padding: '10px', paddingTop: '0' }}>
|
||||
<UploadButton onSelectFile={this.props.onSelectFile} disabled={this.props.is_uploading || this.props.media.size > 3} />
|
||||
<UploadButton onSelectFile={this.props.onSelectFile} disabled={this.props.is_uploading || noMoreAllowed } />
|
||||
|
||||
<div style={{ marginTop: '10px', overflow: 'hidden' }}>
|
||||
{uploads}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue