Skip to content

Commit

Permalink
[B] Show reply button by default in RG notes
Browse files Browse the repository at this point in the history
  • Loading branch information
1aurend committed Dec 18, 2024
1 parent 4733c1d commit ee4d3e3
Showing 1 changed file with 15 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,23 +223,21 @@ class AnnotationDetail extends PureComponent {
<Styled.UtilityList
$isFlagged={annotation.attributes.flagged}
>
{this.includeComments ? (
<Authorize entity={"comment"} ability={"create"}>
<li>
<Styled.Button
ref={this.replyToggleRef}
onClick={
this.state.action === "replying"
? this.stopReply
: this.startReply
}
aria-expanded={this.state.action === "replying"}
>
{t("actions.reply")}
</Styled.Button>
</li>
</Authorize>
) : null}
<Authorize entity={"comment"} ability={"create"}>
<li>
<Styled.Button
ref={this.replyToggleRef}
onClick={
this.state.action === "replying"
? this.stopReply
: this.startReply
}
aria-expanded={this.state.action === "replying"}
>
{t("actions.reply")}
</Styled.Button>
</li>
</Authorize>
<Authorize entity={annotation} ability={"update"}>
<li>
<Styled.Button
Expand Down

0 comments on commit ee4d3e3

Please sign in to comment.