From 7805e7ebdb8ca8a09c6476e778293c281b2baf21 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sun, 9 Sep 2018 19:25:50 -0500 Subject: [PATCH] don't enable hiding name or details ref #336 --- src/FilterLists.Web/ClientApp/components/Home.tsx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index e107909f9..e3993d149 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -20,12 +20,10 @@ interface IHomeState { } const columnVisibilityDefaults = [ - { column: "Name", visible: true }, { column: "Software", visible: true }, { column: "Tags", visible: true }, { column: "Languages", visible: true }, - { column: "Updated Date", visible: true }, - { column: "Details", visible: true } + { column: "Updated Date", visible: true } ]; export class Home extends React.Component, IHomeState> { @@ -129,10 +127,7 @@ export class Home extends React.Component, IHomeState> { .includes(filter.value.toUpperCase()), sortMethod: (a: any, b: any) => a.toUpperCase() > b.toUpperCase() ? 1 : -1, Cell: (cell: any) =>

{cell.value}

, - style: { overflow: "visible" }, - show: state.columnVisibility.filter((c: IColumnVisibility) => { - return c.column === "Name"; - })[0].visible + style: { overflow: "visible" } }, { Header: "Software Support", @@ -247,10 +242,7 @@ export class Home extends React.Component, IHomeState> { } , style: { textAlign: "center" }, - width: 90, - show: state.columnVisibility.filter((c: IColumnVisibility) => { - return c.column === "Details"; - })[0].visible + width: 90 } ]} SubComponent={(row: any) => {