向管理员展示被拉黑与屏蔽情况

This commit is contained in:
2021-12-20 13:39:38 +08:00
parent 51194ec3f8
commit 9663826794
2 changed files with 16 additions and 0 deletions

View File

@@ -343,3 +343,7 @@
color: white; color: white;
font-weight: bold; font-weight: bold;
} }
.danger-info {
color: red;
}

View File

@@ -155,6 +155,12 @@ class Reply extends PureComponent {
   
</> </>
)} )}
{info.dangerous_user && (
<span className="danger-info"> {info.dangerous_user} </span>
)}
{info.blocked_count && (
<span className="danger-info"> {info.blocked_count} </span>
)}
<Time stamp={info.timestamp} short={!do_report} /> <Time stamp={info.timestamp} short={!do_report} />
&nbsp; &nbsp;
</div> </div>
@@ -290,6 +296,12 @@ class FlowItem extends PureComponent {
onClick={do_block} onClick={do_block}
> 🚫 </span> > 🚫 </span>
)} )}
{info.dangerous_user && (
<span className="danger-info"> {info.dangerous_user} </span>
)}
{info.blocked_count && (
<span className="danger-info"> {info.blocked_count} </span>
)}
{info.cw !== null && {info.cw !== null &&
(!do_edit_cw || !info.can_del) && ( (!do_edit_cw || !info.can_del) && (
<span className="box-header-cw">{info.cw}</span> <span className="box-header-cw">{info.cw}</span>