Add User's IsForbidden.

This commit is contained in:
Yang Luo
2021-05-02 12:18:28 +08:00
parent 79f1c62ff7
commit 82f4f542ed
8 changed files with 35 additions and 4 deletions

View File

@ -364,6 +364,16 @@ class UserEditPage extends React.Component {
}} />
</Col>
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("user:Is forbidden")}:
</Col>
<Col span={1} >
<Switch checked={this.state.user.isForbidden} onChange={checked => {
this.updateUserField('isForbidden', checked);
}} />
</Col>
</Row>
</React.Fragment>
)
}