From 6cc67e58f2dfc4efc019026f60b6b550d6cc06df Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Wed, 17 Feb 2016 13:44:41 -0800 Subject: Removed ability to copy a permalink on mobile --- web/react/components/post_info.jsx | 32 ++++++++++++----------- web/react/components/rhs_comment.jsx | 32 ++++++++++++----------- web/react/components/rhs_root_post.jsx | 46 ++++++++++++++++++---------------- 3 files changed, 58 insertions(+), 52 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( -
  • - - - -
  • - ); + + + + + ); + } if (isOwner || isAdmin) { dropdownContents.push( diff --git a/web/react/components/rhs_comment.jsx b/web/react/components/rhs_comment.jsx index 0d15c8599..201a4c569 100644 --- a/web/react/components/rhs_comment.jsx +++ b/web/react/components/rhs_comment.jsx @@ -97,22 +97,24 @@ class RhsComment extends React.Component { var dropdownContents = []; - dropdownContents.push( -
  • - - - -
  • - ); + + + + + ); + } if (isOwner) { dropdownContents.push( diff --git a/web/react/components/rhs_root_post.jsx b/web/react/components/rhs_root_post.jsx index 54f2e8262..adf66da85 100644 --- a/web/react/components/rhs_root_post.jsx +++ b/web/react/components/rhs_root_post.jsx @@ -5,7 +5,7 @@ import ChannelStore from '../stores/channel_store.jsx'; import UserProfile from './user_profile.jsx'; import UserStore from '../stores/user_store.jsx'; import * as TextFormatting from '../utils/text_formatting.jsx'; -import * as utils from '../utils/utils.jsx'; +import * as Utils from '../utils/utils.jsx'; import * as Emoji from '../utils/emoticons.jsx'; import FileAttachmentList from './file_attachment_list.jsx'; import twemoji from 'twemoji'; @@ -40,7 +40,7 @@ export default class RhsRootPost extends React.Component { this.parseEmojis(); } shouldComponentUpdate(nextProps) { - if (!utils.areObjectsEqual(nextProps.post, this.props.post)) { + if (!Utils.areObjectsEqual(nextProps.post, this.props.post)) { return true; } @@ -53,7 +53,7 @@ export default class RhsRootPost extends React.Component { var post = this.props.post; var currentUser = UserStore.getCurrentUser(); var isOwner = currentUser.id === post.user_id; - var isAdmin = utils.isAdmin(currentUser.roles); + var isAdmin = Utils.isAdmin(currentUser.roles); var timestamp = UserStore.getProfile(post.user_id).update_at; var channel = ChannelStore.get(post.channel_id); @@ -68,7 +68,7 @@ export default class RhsRootPost extends React.Component { } var systemMessageClass = ''; - if (utils.isSystemMessage(post)) { + if (Utils.isSystemMessage(post)) { systemMessageClass = 'post--system'; } @@ -88,22 +88,24 @@ export default class RhsRootPost extends React.Component { var dropdownContents = []; - dropdownContents.push( -
  • - - - -
  • - ); + + + + + ); + } if (isOwner) { dropdownContents.push( @@ -198,7 +200,7 @@ export default class RhsRootPost extends React.Component { } botIndicator =
  • {'BOT'}
  • ; - } else if (utils.isSystemMessage(post)) { + } else if (Utils.isSystemMessage(post)) { userProfile = (