From 32842be3094237d6dffe41b52b24b2d04f85576e Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Mon, 12 Dec 2016 20:17:20 +0500 Subject: Multiple Ui improvements (#4767) * PLT-4911 - Adding new target for OAuth help links * PLT-4953 - Fixing styles for the unread messages indicator * PLT-4901 - Fixing header modal overlap on mobile * PLT-4916 - Swapping position of edit and delete --- webapp/components/admin_console/oauth_settings.jsx | 4 +-- .../post_view/components/new_message_indicator.jsx | 9 +++-- webapp/components/rhs_comment.jsx | 38 +++++++++++----------- webapp/components/rhs_root_post.jsx | 32 +++++++++--------- 4 files changed, 41 insertions(+), 42 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/admin_console/oauth_settings.jsx b/webapp/components/admin_console/oauth_settings.jsx index 716889401..9a86abfa0 100644 --- a/webapp/components/admin_console/oauth_settings.jsx +++ b/webapp/components/admin_console/oauth_settings.jsx @@ -385,7 +385,7 @@ export default class OAuthSettings extends AdminSettings { helpText = ( ); } else if (this.state.oauthType === Constants.OFFICE365_SERVICE) { @@ -393,7 +393,7 @@ export default class OAuthSettings extends AdminSettings { helpText = ( ); } diff --git a/webapp/components/post_view/components/new_message_indicator.jsx b/webapp/components/post_view/components/new_message_indicator.jsx index 35a299462..f9bd17bd7 100644 --- a/webapp/components/post_view/components/new_message_indicator.jsx +++ b/webapp/components/post_view/components/new_message_indicator.jsx @@ -21,7 +21,7 @@ export default class NewMessageIndicator extends React.Component { } } render() { - let className = 'nav-pills__unread-indicator-bottom'; + let className = 'new-messages__button'; if (this.state.visible > 0) { className += ' visible'; } @@ -31,20 +31,19 @@ export default class NewMessageIndicator extends React.Component { return (
- +
- +
); } diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index 8b5d56c01..c699fb353 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -166,49 +166,49 @@ export default class RhsComment extends React.Component { ); - if (isOwner) { + if (isOwner || isAdmin) { dropdownContents.push(
  • { + e.preventDefault(); + GlobalActions.showDeletePostModal(post, 0); + }} >
  • ); } - if (isOwner || isAdmin) { + if (isOwner) { dropdownContents.push(
  • { - e.preventDefault(); - GlobalActions.showDeletePostModal(post, 0); - }} + data-toggle='modal' + data-target='#edit_post' + data-refocusid='#reply_textbox' + data-title={Utils.localizeMessage('rhs_comment.comment', 'Comment')} + data-message={post.message} + data-postid={post.id} + data-channelid={post.channel_id} >
  • diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index d871ad2a9..4a15127a0 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -185,46 +185,46 @@ export default class RhsRootPost extends React.Component { ); - if (isOwner && !isSystemMessage) { + if (isOwner || isAdmin) { dropdownContents.push(
  • GlobalActions.showDeletePostModal(post, this.props.commentCount)} >
  • ); } - if (isOwner || isAdmin) { + if (isOwner && !isSystemMessage) { dropdownContents.push(
  • GlobalActions.showDeletePostModal(post, this.props.commentCount)} + data-toggle='modal' + data-target='#edit_post' + data-refocusid='#reply_textbox' + data-title={type} + data-message={post.message} + data-postid={post.id} + data-channelid={post.channel_id} >
  • -- cgit v1.2.3-1-g7c22