Allow video to be expanded into lightbox
This commit is contained in:
parent
a57d30c680
commit
00cc3066a2
10 changed files with 95 additions and 9 deletions
|
@ -112,6 +112,10 @@ const Status = React.createClass({
|
|||
this.props.dispatch(openModal('MEDIA', { media, index }));
|
||||
},
|
||||
|
||||
handleOpenVideo (media) {
|
||||
this.props.dispatch(openModal('VIDEO', { media }));
|
||||
},
|
||||
|
||||
handleReport (status) {
|
||||
this.props.dispatch(initReport(status.get('account'), status));
|
||||
},
|
||||
|
@ -151,7 +155,7 @@ const Status = React.createClass({
|
|||
<div className='scrollable'>
|
||||
{ancestors}
|
||||
|
||||
<DetailedStatus status={status} me={me} onOpenMedia={this.handleOpenMedia} />
|
||||
<DetailedStatus status={status} me={me} onOpenVideo={this.handleOpenVideo} onOpenMedia={this.handleOpenMedia} />
|
||||
<ActionBar status={status} me={me} onReply={this.handleReplyClick} onFavourite={this.handleFavouriteClick} onReblog={this.handleReblogClick} onDelete={this.handleDeleteClick} onMention={this.handleMentionClick} onReport={this.handleReport} />
|
||||
|
||||
{descendants}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue