summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-12-01 22:46:54 -0800
committer=Corey Hulen <corey@hulen.com>2015-12-01 22:46:54 -0800
commitd4db4545f599bbf1558302b09f038fd6736f5d7f (patch)
tree88033bb2fd64f09bbe66ea507c75a0cb99679b68 /web/react
parent17bd3ffcbd31eb4703355d657d15a85b5aff3c4b (diff)
downloadchat-d4db4545f599bbf1558302b09f038fd6736f5d7f.tar.gz
chat-d4db4545f599bbf1558302b09f038fd6736f5d7f.tar.bz2
chat-d4db4545f599bbf1558302b09f038fd6736f5d7f.zip
re-org'ing list
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/post_info.jsx62
1 files changed, 31 insertions, 31 deletions
diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx
index dd2b154a0..0b8b07d8c 100644
--- a/web/react/components/post_info.jsx
+++ b/web/react/components/post_info.jsx
@@ -42,30 +42,37 @@ export default class PostInfo extends React.Component {
dataComments = this.props.commentCount;
}
- if (isOwner) {
+ if (this.props.allowReply === 'true') {
dropdownContents.push(
<li
- key='editPost'
+ key='replyLink'
role='presentation'
>
<a
+ className='link__reply theme'
href='#'
- role='menuitem'
- data-toggle='modal'
- data-target='#edit_post'
- data-refocusid='#post_textbox'
- data-title={type}
- data-message={post.message}
- data-postid={post.id}
- data-channelid={post.channel_id}
- data-comments={dataComments}
+ onClick={this.props.handleCommentClick}
>
- {'Edit'}
+ {'Reply'}
</a>
</li>
);
}
+ dropdownContents.push(
+ <li
+ key='copyLink'
+ role='presentation'
+ >
+ <a
+ href='#'
+ onClick={(e) => this.setState({target: e.target, show: !this.state.show})}
+ >
+ {'Permalink'}
+ </a>
+ </li>
+ );
+
if (isOwner || isAdmin) {
dropdownContents.push(
<li
@@ -83,37 +90,30 @@ export default class PostInfo extends React.Component {
);
}
- if (this.props.allowReply === 'true') {
+ if (isOwner) {
dropdownContents.push(
<li
- key='replyLink'
+ key='editPost'
role='presentation'
>
<a
- className='link__reply theme'
href='#'
- onClick={this.props.handleCommentClick}
+ role='menuitem'
+ data-toggle='modal'
+ data-target='#edit_post'
+ data-refocusid='#post_textbox'
+ data-title={type}
+ data-message={post.message}
+ data-postid={post.id}
+ data-channelid={post.channel_id}
+ data-comments={dataComments}
>
- {'Reply'}
+ {'Edit'}
</a>
</li>
);
}
- dropdownContents.push(
- <li
- key='copyLink'
- role='presentation'
- >
- <a
- href='#'
- onClick={(e) => this.setState({target: e.target, show: !this.state.show})}
- >
- {'Permalink'}
- </a>
- </li>
- );
-
if (dropdownContents.length === 0) {
return '';
}