Add restriction to built-in org and app modification.

This commit is contained in:
Yang Luo
2021-12-23 00:40:07 +08:00
parent 8345295d0c
commit f5bc76016d
6 changed files with 22 additions and 4 deletions

View File

@ -94,7 +94,7 @@ class OrganizationEditPage extends React.Component {
{Setting.getLabel(i18next.t("general:Name"), i18next.t("general:Name - Tooltip"))} :
</Col>
<Col span={22} >
<Input value={this.state.organization.name} onChange={e => {
<Input value={this.state.organization.name} disabled={this.state.organization.name === "built-in"} onChange={e => {
this.updateOrganizationField('name', e.target.value);
}} />
</Col>