From d4db4545f599bbf1558302b09f038fd6736f5d7f Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Tue, 1 Dec 2015 22:46:54 -0800 Subject: re-org'ing list --- web/react/components/post_info.jsx | 62 +++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 31 deletions(-) (limited to 'web/react/components') 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(
  • - {'Edit'} + {'Reply'}
  • ); } + dropdownContents.push( +
  • + this.setState({target: e.target, show: !this.state.show})} + > + {'Permalink'} + +
  • + ); + if (isOwner || isAdmin) { dropdownContents.push(
  • - {'Reply'} + {'Edit'}
  • ); } - dropdownContents.push( -
  • - this.setState({target: e.target, show: !this.state.show})} - > - {'Permalink'} - -
  • - ); - if (dropdownContents.length === 0) { return ''; } -- cgit v1.2.3-1-g7c22