mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
fix translations
This commit is contained in:
@@ -38,7 +38,6 @@ import styled from "styled-components";
|
||||
const ExternalDescription = styled.div`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 400;
|
||||
`;
|
||||
|
||||
|
||||
@@ -179,6 +179,20 @@ class UserForm extends React.Component<Props, State> {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{!this.props.user && (
|
||||
<>
|
||||
<div className="columns">
|
||||
<div className="column">
|
||||
<Checkbox
|
||||
label={t("user.externalFlag")}
|
||||
onChange={this.handleExternalChange}
|
||||
checked={!!user.external}
|
||||
helpText={t("help.externalFlagHelpText")}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{!user.external && (
|
||||
<>
|
||||
{!this.props.user && passwordChangeField}
|
||||
@@ -249,6 +263,15 @@ class UserForm extends React.Component<Props, State> {
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
handleExternalChange = (external: boolean) => {
|
||||
this.setState({
|
||||
user: {
|
||||
...this.state.user,
|
||||
external
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
export default withTranslation("users")(UserForm);
|
||||
|
||||
Reference in New Issue
Block a user