From 2a3b8665775be1baffc23ac1033ab714b79eaa05 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 2 Mar 2020 11:01:00 -0500 Subject: [PATCH] Moving link out of more menu. --- ui/src/components/comment-node.tsx | 65 ++++++++++++++++-------------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index a904eae36..cd95a75be 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -270,28 +270,6 @@ export class CommentNode extends Component { {node.comment.saved ? i18n.t('unsave') : i18n.t('save')} - {this.myComment && ( - <> -
  • - - {i18n.t('edit')} - -
  • -
  • - - {!node.comment.deleted - ? i18n.t('delete') - : i18n.t('restore')} - -
  • - - )} {!this.myComment && (
  • {
  • )} +
  • + + {i18n.t('link')} + +
  • {!this.state.showAdvanced ? (
  • { {i18n.t('view_source')}
  • -
  • - - {i18n.t('link')} - -
  • +
  • + {this.myComment && ( + <> +
  • + + {i18n.t('edit')} + +
  • +
  • + + {!node.comment.deleted + ? i18n.t('delete') + : i18n.t('restore')} + +
  • + + )} {/* Admins and mods can remove comments */} {(this.canMod || this.canAdmin) && ( <> -
  • {!node.comment.removed ? (