Fix organization search in some pages

This commit is contained in:
Yang Luo 2023-06-06 20:50:28 +08:00
parent e1c0af345f
commit f934531083
4 changed files with 5 additions and 5 deletions

View File

@ -108,7 +108,7 @@ class CertListPage extends BaseListPage {
key: "owner", key: "owner",
width: "150px", width: "150px",
sorter: true, sorter: true,
...this.getColumnSearchProps("organization"), ...this.getColumnSearchProps("owner"),
render: (text, record, index) => { render: (text, record, index) => {
return (text !== "admin") ? text : i18next.t("provider:admin (Shared)"); return (text !== "admin") ? text : i18next.t("provider:admin (Shared)");
}, },

View File

@ -100,7 +100,7 @@ class ProductListPage extends BaseListPage {
key: "owner", key: "owner",
width: "150px", width: "150px",
sorter: true, sorter: true,
...this.getColumnSearchProps("organization"), ...this.getColumnSearchProps("owner"),
}, },
{ {
title: i18next.t("general:Created time"), title: i18next.t("general:Created time"),

View File

@ -111,7 +111,7 @@ class ProviderListPage extends BaseListPage {
key: "owner", key: "owner",
width: "150px", width: "150px",
sorter: true, sorter: true,
...this.getColumnSearchProps("organization"), ...this.getColumnSearchProps("owner"),
render: (text, record, index) => { render: (text, record, index) => {
return (text !== "admin") ? text : i18next.t("provider:admin (Shared)"); return (text !== "admin") ? text : i18next.t("provider:admin (Shared)");
}, },

View File

@ -55,10 +55,10 @@ class SessionListPage extends BaseListPage {
{ {
title: i18next.t("general:Organization"), title: i18next.t("general:Organization"),
dataIndex: "owner", dataIndex: "owner",
key: "organization", key: "owner",
width: "110px", width: "110px",
sorter: true, sorter: true,
...this.getColumnSearchProps("organization"), ...this.getColumnSearchProps("owner"),
render: (text, record, index) => { render: (text, record, index) => {
return ( return (
<Link to={`/organizations/${text}`}> <Link to={`/organizations/${text}`}>