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

@ -236,8 +236,9 @@ class ApplicationListPage extends React.Component {
<Popconfirm
title={`Sure to delete application: ${record.name} ?`}
onConfirm={() => this.deleteApplication(index)}
disabled={record.name === "app-built-in"}
>
<Button style={{marginBottom: '10px'}} type="danger">{i18next.t("general:Delete")}</Button>
<Button style={{marginBottom: '10px'}} disabled={record.name === "app-built-in"} type="danger">{i18next.t("general:Delete")}</Button>
</Popconfirm>
</div>
)