From e295da774fafd89af6644c0d4207b54a90c5b420 Mon Sep 17 00:00:00 2001 From: Gucheng Wang Date: Sun, 18 Sep 2022 23:11:40 +0800 Subject: [PATCH] Improve record list page --- util/{util.go => routine.go} | 0 web/src/RecordListPage.js | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) rename util/{util.go => routine.go} (100%) diff --git a/util/util.go b/util/routine.go similarity index 100% rename from util/util.go rename to util/routine.go diff --git a/web/src/RecordListPage.js b/web/src/RecordListPage.js index 9918fb2a..6d4cbe93 100644 --- a/web/src/RecordListPage.js +++ b/web/src/RecordListPage.js @@ -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,