Show org column better for admin (shared)

This commit is contained in:
Yang Luo 2023-05-17 17:25:59 +08:00
parent ce921c00cd
commit 596742d782
3 changed files with 10 additions and 3 deletions

View File

@ -112,7 +112,6 @@ class ApplicationEditPage extends React.Component {
UNSAFE_componentWillMount() {
this.getApplication();
this.getOrganizations();
this.getCerts();
this.getProviders();
this.getSamlMetadata();
}
@ -126,6 +125,8 @@ class ApplicationEditPage extends React.Component {
this.setState({
application: application,
});
this.getCerts(application.organization);
});
}
@ -144,8 +145,8 @@ class ApplicationEditPage extends React.Component {
});
}
getCerts() {
CertBackend.getCerts(this.props.account.owner)
getCerts(owner) {
CertBackend.getCerts(owner)
.then((res) => {
this.setState({
certs: (res.msg === undefined) ? res : [],

View File

@ -99,6 +99,9 @@ class CertListPage extends BaseListPage {
width: "150px",
sorter: true,
...this.getColumnSearchProps("organization"),
render: (text, record, index) => {
return (text !== "admin") ? text : i18next.t("provider:admin (Shared)");
},
},
{
title: i18next.t("general:Created time"),

View File

@ -112,6 +112,9 @@ class ProviderListPage extends BaseListPage {
width: "150px",
sorter: true,
...this.getColumnSearchProps("organization"),
render: (text, record, index) => {
return (text !== "admin") ? text : i18next.t("provider:admin (Shared)");
},
},
{
title: i18next.t("general:Created time"),