summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_info.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2016-02-17 13:44:41 -0800
committerReed Garmsen <rgarmsen2295@gmail.com>2016-02-18 11:30:12 -0800
commit6cc67e58f2dfc4efc019026f60b6b550d6cc06df (patch)
tree5dd7ce374d69459d41968089d1dc168a33e0fb9a /web/react/components/post_info.jsx
parentdaa06ad41e0fe8c9b2b443952e893af354addd95 (diff)
downloadchat-6cc67e58f2dfc4efc019026f60b6b550d6cc06df.tar.gz
chat-6cc67e58f2dfc4efc019026f60b6b550d6cc06df.tar.bz2
chat-6cc67e58f2dfc4efc019026f60b6b550d6cc06df.zip
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(