Add Site settings > General (#133)

This commit is contained in:
Riccardo Graziosi
2022-07-18 10:47:54 +02:00
committed by GitHub
parent bdc4004e4a
commit 35831b9801
99 changed files with 2405 additions and 281 deletions

View File

@@ -87,12 +87,13 @@ class PostStatusForm extends React.Component<Props, State> {
const {name, color} = this.state;
return (
<div className="postStatusForm">
<form className="postStatusForm">
<input
type="text"
placeholder={I18n.t('site_settings.post_statuses.form.name')}
value={name}
onChange={e => this.onNameChange(e.target.value)}
autoFocus
className="form-control"
/>
@@ -104,7 +105,10 @@ class PostStatusForm extends React.Component<Props, State> {
/>
<Button
onClick={this.onSubmit}
onClick={e => {
e.preventDefault();
this.onSubmit();
}}
className="newPostStatusButton"
disabled={!this.isFormValid()}
>
@@ -115,7 +119,7 @@ class PostStatusForm extends React.Component<Props, State> {
I18n.t('common.buttons.update')
}
</Button>
</div>
</form>
);
}
}