mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
Improve record list page
This commit is contained in:
@ -44,7 +44,7 @@ class RecordListPage extends BaseListPage {
|
||||
}
|
||||
|
||||
renderTable(records) {
|
||||
const columns = [
|
||||
let columns = [
|
||||
{
|
||||
title: i18next.t("general:Name"),
|
||||
dataIndex: "name",
|
||||
@ -174,6 +174,10 @@ class RecordListPage extends BaseListPage {
|
||||
},
|
||||
];
|
||||
|
||||
if (Setting.isLocalAdminUser(this.props.account)) {
|
||||
columns = columns.filter(column => column.key !== "name" && column.key !== "organization");
|
||||
}
|
||||
|
||||
const paginationProps = {
|
||||
total: this.state.pagination.total,
|
||||
pageSize: this.state.pagination.pageSize,
|
||||
|
Reference in New Issue
Block a user