From 5f6f51b549d42943b85d8f7dc9d193aec0935ab6 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 2 Mar 2020 11:01:00 -0500 Subject: 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 a904eae3..cd95a75b 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 ? (