mirror of
https://github.com/wassname/talk.git
synced 2026-07-08 12:16:27 +08:00
Merge branch 'master' into premod_setting
This commit is contained in:
@@ -158,9 +158,16 @@ export default class FlagButton extends Component {
|
||||
<ClickOutside onClickOutside={this.handleClickOutside}>
|
||||
<div className={`${name}-container`}>
|
||||
<button
|
||||
disabled={flagged}
|
||||
ref={(ref) => this.flagButton = ref}
|
||||
onClick={!this.props.banned && !flaggedByCurrentUser && !localPost ? this.onReportClick : null}
|
||||
className={cn(`${name}-button`, {[`${name}-button-flagged`]: flagged}, styles.button)}>
|
||||
className={
|
||||
cn(`${name}-button`, {
|
||||
[`${name}-button-flagged`]: flagged,
|
||||
[styles.flaggedButton]: flagged
|
||||
},
|
||||
styles.button)}
|
||||
>
|
||||
{
|
||||
flagged
|
||||
? <span className={`${name}-button-text`}>{t('reported')}</span>
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
margin: 5px 0px 5px 10px;
|
||||
}
|
||||
|
||||
button[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.flaggedIcon {
|
||||
color: #f00
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user