Add description fields to objects

This commit is contained in:
Yang Luo
2023-06-03 18:49:57 +08:00
parent 0c118477e8
commit 5ec7a54bf8
6 changed files with 33 additions and 0 deletions

View File

@ -122,6 +122,16 @@ class ModelEditPage extends React.Component {
}} />
</Col>
</Row>
<Row style={{marginTop: "20px"}} >
<Col style={{marginTop: "5px"}} span={(Setting.isMobile()) ? 22 : 2}>
{Setting.getLabel(i18next.t("general:Description"), i18next.t("general:Description - Tooltip"))} :
</Col>
<Col span={22} >
<Input value={this.state.model.description} onChange={e => {
this.updateModelField("description", e.target.value);
}} />
</Col>
</Row>
<Row style={{marginTop: "20px"}} >
<Col style={{marginTop: "5px"}} span={(Setting.isMobile()) ? 22 : 2}>
{Setting.getLabel(i18next.t("model:Model text"), i18next.t("model:Model text - Tooltip"))} :