mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-25 12:21:31 +00:00
Moving link out of more menu.
This commit is contained in:
parent
50b768d39b
commit
2a3b866577
1 changed files with 34 additions and 31 deletions
59
ui/src/components/comment-node.tsx
vendored
59
ui/src/components/comment-node.tsx
vendored
|
@ -270,28 +270,6 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
{node.comment.saved ? i18n.t('unsave') : i18n.t('save')}
|
{node.comment.saved ? i18n.t('unsave') : i18n.t('save')}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{this.myComment && (
|
|
||||||
<>
|
|
||||||
<li className="list-inline-item">
|
|
||||||
<span
|
|
||||||
class="pointer"
|
|
||||||
onClick={linkEvent(this, this.handleEditClick)}
|
|
||||||
>
|
|
||||||
{i18n.t('edit')}
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
<li className="list-inline-item">
|
|
||||||
<span
|
|
||||||
class="pointer"
|
|
||||||
onClick={linkEvent(this, this.handleDeleteClick)}
|
|
||||||
>
|
|
||||||
{!node.comment.deleted
|
|
||||||
? i18n.t('delete')
|
|
||||||
: i18n.t('restore')}
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
{!this.myComment && (
|
{!this.myComment && (
|
||||||
<li className="list-inline-item">
|
<li className="list-inline-item">
|
||||||
<Link
|
<Link
|
||||||
|
@ -302,6 +280,14 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
)}
|
)}
|
||||||
|
<li className="list-inline-item">
|
||||||
|
<Link
|
||||||
|
className="text-muted"
|
||||||
|
to={`/post/${node.comment.post_id}/comment/${node.comment.id}`}
|
||||||
|
>
|
||||||
|
{i18n.t('link')}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
{!this.state.showAdvanced ? (
|
{!this.state.showAdvanced ? (
|
||||||
<li className="list-inline-item">
|
<li className="list-inline-item">
|
||||||
<span
|
<span
|
||||||
|
@ -322,18 +308,35 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
{i18n.t('view_source')}
|
{i18n.t('view_source')}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li className="list-inline-item">•</li>
|
||||||
|
{this.myComment && (
|
||||||
|
<>
|
||||||
<li className="list-inline-item">
|
<li className="list-inline-item">
|
||||||
<Link
|
<span
|
||||||
className="text-muted"
|
class="pointer"
|
||||||
to={`/post/${node.comment.post_id}/comment/${node.comment.id}`}
|
onClick={linkEvent(this, this.handleEditClick)}
|
||||||
>
|
>
|
||||||
{i18n.t('link')}
|
{i18n.t('edit')}
|
||||||
</Link>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li className="list-inline-item">
|
||||||
|
<span
|
||||||
|
class="pointer"
|
||||||
|
onClick={linkEvent(
|
||||||
|
this,
|
||||||
|
this.handleDeleteClick
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{!node.comment.deleted
|
||||||
|
? i18n.t('delete')
|
||||||
|
: i18n.t('restore')}
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
{/* Admins and mods can remove comments */}
|
{/* Admins and mods can remove comments */}
|
||||||
{(this.canMod || this.canAdmin) && (
|
{(this.canMod || this.canAdmin) && (
|
||||||
<>
|
<>
|
||||||
<li className="list-inline-item">•</li>
|
|
||||||
<li className="list-inline-item">
|
<li className="list-inline-item">
|
||||||
{!node.comment.removed ? (
|
{!node.comment.removed ? (
|
||||||
<span
|
<span
|
||||||
|
|
Loading…
Reference in a new issue