diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-08-03 14:29:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-03 14:29:31 +0800 |
commit | f3934bc7e1e8ef555e1c2e1fe0ece3dbd88ea687 (patch) | |
tree | 8555be93795821a35dfe64ec6c8e749d235bbd4d /webapp/components/post_view/post_attachment_opengraph/index.js | |
parent | 345bb2236f1f34c2b1ddfec0024ea47c4b1b8950 (diff) | |
download | chat-f3934bc7e1e8ef555e1c2e1fe0ece3dbd88ea687.tar.gz chat-f3934bc7e1e8ef555e1c2e1fe0ece3dbd88ea687.tar.bz2 chat-f3934bc7e1e8ef555e1c2e1fe0ece3dbd88ea687.zip |
[PLT-1249] Add close button 'x' to the right of a link preview (#7017)
* add close button 'x' to the right of a link preview
* Updating webhook UI
* UI improvements for close button
* Adding hover state
* Making the close button visible on mobile
* previews are permanently disabled/closed for that link
* make post as required props
* fix JS error of undefined
* fix update issue both at center and RHS view
Diffstat (limited to 'webapp/components/post_view/post_attachment_opengraph/index.js')
-rw-r--r-- | webapp/components/post_view/post_attachment_opengraph/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/post_view/post_attachment_opengraph/index.js b/webapp/components/post_view/post_attachment_opengraph/index.js index e0bec8f36..1f889f1d6 100644 --- a/webapp/components/post_view/post_attachment_opengraph/index.js +++ b/webapp/components/post_view/post_attachment_opengraph/index.js @@ -2,6 +2,7 @@ // See License.txt for license information. import {connect} from 'react-redux'; +import {getCurrentUser} from 'mattermost-redux/selectors/entities/users'; import {bindActionCreators} from 'redux'; import {getOpenGraphMetadata} from 'mattermost-redux/actions/posts'; import {getOpenGraphMetadataForUrl} from 'mattermost-redux/selectors/entities/posts'; @@ -11,7 +12,8 @@ import PostAttachmentOpenGraph from './post_attachment_opengraph.jsx'; function mapStateToProps(state, ownProps) { return { ...ownProps, - openGraphData: getOpenGraphMetadataForUrl(state, ownProps.link) + openGraphData: getOpenGraphMetadataForUrl(state, ownProps.link), + currentUser: getCurrentUser(state), }; } |