fix expand/collapse arrows for youtube videos (#7240)

Этот коммит содержится в:
Saturnino Abril
2017-08-21 20:06:34 +08:00
коммит произвёл Joram Wilander
родитель d7b055f428
Коммит 22efdbe6fb
3 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@@ -107,7 +107,7 @@ export default class PostAttachmentOpenGraph extends React.PureComponent {
}
componentDidUpdate() {
postListScrollChange();
setTimeout(postListScrollChange, 0);
}
fetchData(url) {

Просмотреть файл

@@ -134,6 +134,7 @@ export default class PostBodyAdditionalContent extends React.PureComponent {
channelId={this.props.post.channel_id}
link={link}
show={this.state.embedVisible}
onLinkLoaded={this.handleLinkLoaded}
/>
);
}

Просмотреть файл

@@ -14,7 +14,8 @@ export default class YoutubeVideo extends React.PureComponent {
channelId: PropTypes.string.isRequired,
currentChannelId: PropTypes.string.isRequired,
link: PropTypes.string.isRequired,
show: PropTypes.bool.isRequired
show: PropTypes.bool.isRequired,
onLinkLoaded: PropTypes.func
}
constructor(props) {
@@ -103,6 +104,7 @@ export default class YoutubeVideo extends React.PureComponent {
} else {
this.loadWithoutKey();
}
this.props.onLinkLoaded();
}
loadWithoutKey() {