summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_info.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-02-18 17:34:06 -0500
committerJoram Wilander <jwawilander@gmail.com>2016-02-18 17:34:06 -0500
commit6e4c0ddef678aa5a599adc1ab92dfff4f77d0eb2 (patch)
treefb43b39b9bd69501d1ed478056ba8047441e52a5 /web/react/components/post_info.jsx
parent3c5744f0d60f69ae54b2a87e097dd582547fbc32 (diff)
parent6cc67e58f2dfc4efc019026f60b6b550d6cc06df (diff)
downloadchat-6e4c0ddef678aa5a599adc1ab92dfff4f77d0eb2.tar.gz
chat-6e4c0ddef678aa5a599adc1ab92dfff4f77d0eb2.tar.bz2
chat-6e4c0ddef678aa5a599adc1ab92dfff4f77d0eb2.zip
Merge pull request #2192 from rgarmsen2295/plt-1622
PLT-1622 Removed ability to copy a permalink on mobile
Diffstat (limited to 'web/react/components/post_info.jsx')
-rw-r--r--web/react/components/post_info.jsx32
1 files changed, 17 insertions, 15 deletions
diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx
index d1d516816..ffac6eaef 100644
--- a/web/react/components/post_info.jsx
+++ b/web/react/components/post_info.jsx
@@ -65,22 +65,24 @@ export default class PostInfo extends React.Component {
);
}
- dropdownContents.push(
- <li
- key='copyLink'
- role='presentation'
- >
- <a
- href='#'
- onClick={this.handlePermalink}
+ if (!Utils.isMobile()) {
+ dropdownContents.push(
+ <li
+ key='copyLink'
+ role='presentation'
>
- <FormattedMessage
- id='post_info.permalink'
- defaultMessage='Permalink'
- />
- </a>
- </li>
- );
+ <a
+ href='#'
+ onClick={this.handlePermalink}
+ >
+ <FormattedMessage
+ id='post_info.permalink'
+ defaultMessage='Permalink'
+ />
+ </a>
+ </li>
+ );
+ }
if (isOwner || isAdmin) {
dropdownContents.push(