Skip to content

Commit

Permalink
Merge pull request #2846 from GreenAsJade/show_cm_note_to_cms_on_esca…
Browse files Browse the repository at this point in the history
…lated_reports

Show CM note to CMs with suspend power
  • Loading branch information
anoek authored Oct 7, 2024
2 parents 0cff209 + e0397f5 commit f5df490
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/views/ReportsCenter/ViewReport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,15 @@ export function ViewReport({ report_id, reports, onChange }: ViewReportProps): J
</div>
)}

{report.escalated &&
report.community_mod_note &&
(user.is_moderator || user.moderator_powers & MODERATOR_POWERS.SUSPEND) && (
<div className="notes">
<h4>Escalator's note:</h4>
<div className="Card">{report.community_mod_note}</div>
</div>
)}

{((!user.is_moderator && user.moderator_powers) || null) && (
<div className="voting">
<ModerationActionSelector
Expand Down Expand Up @@ -596,12 +605,6 @@ export function ViewReport({ report_id, reports, onChange }: ViewReportProps): J
</ul>
</div>
)}
{report.escalated && report.community_mod_note && (
<div className="community-mod-note">
<h5>Community Moderator Note:</h5>
<div className="Card">{report.community_mod_note}</div>
</div>
)}
</>
)}
</div>
Expand Down

0 comments on commit f5df490

Please sign in to comment.