From d3031e0f10458c174fe46c99f1a64879259e9b75 Mon Sep 17 00:00:00 2001 From: jahooma Date: Tue, 18 Jan 2022 16:29:49 -0600 Subject: [PATCH] Admin contracts tabel: Add visibility column, filter out resolved --- web/pages/admin.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/pages/admin.tsx b/web/pages/admin.tsx index 233effcb..d0346ee1 100644 --- a/web/pages/admin.tsx +++ b/web/pages/admin.tsx @@ -77,6 +77,7 @@ function ContractsTable() { let contracts = useContracts() ?? [] // Sort users by createdTime descending, by default contracts.sort((a, b) => b.createdTime - a.createdTime) + contracts = contracts.filter((contract) => !contract.isResolved) return ( ` ), }, + { + id: 'visibility', + name: 'Visibility', + formatter: (cell) => cell, + }, { id: 'id', name: 'ID',