Skip to content

Commit

Permalink
temp hide updated date
Browse files Browse the repository at this point in the history
...while experiencing issues with snapshot service (resetting db often)

ref collinbarrett#378
  • Loading branch information
collinbarrett committed Aug 23, 2018
1 parent f788858 commit b44ee53
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions src/FilterLists.Web/ClientApp/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,22 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
headerClassName: "d-none d-lg-block",
className: "d-none d-lg-block"
},
{
Header: "Updated",
accessor: "updatedDate",
filterable: true,
filterMethod: (filter: any, row: any) => row[filter.id].includes(filter.value),
sortMethod: (a: any, b: any) => moment(a).isValid()
? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1)
: -1,
Cell: (cell: any) => <div>{moment(cell.value).isValid()
? moment(cell.value).format("l")
: "N/A"}</div>,
style: { whiteSpace: "inherit" },
width: 100,
headerClassName: "d-none d-lg-block",
className: "d-none d-lg-block"
},
//{
// Header: "Updated",
// accessor: "updatedDate",
// filterable: true,
// filterMethod: (filter: any, row: any) => row[filter.id].includes(filter.value),
// sortMethod: (a: any, b: any) => moment(a).isValid()
// ? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1)
// : -1,
// Cell: (cell: any) => <div>{moment(cell.value).isValid()
// ? moment(cell.value).format("l")
// : "N/A"}</div>,
// style: { whiteSpace: "inherit" },
// width: 100,
// headerClassName: "d-none d-lg-block",
// className: "d-none d-lg-block"
//},
{
Header: "Details",
accessor: "id",
Expand Down
2 changes: 1 addition & 1 deletion src/FilterLists.Web/ClientApp/components/ListDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function ListInfo(props: any) {
<Languages languages={props.details.languages}/>
<RuleCount count={props.details.ruleCount}/>
<DiscontinuedDate date={props.details.discontinuedDate}/>
<UpdatedDate date={props.details.updatedDate}/>
{/* <UpdatedDate date={props.details.updatedDate}/>--> */}
<PublishedDate date={props.details.publishedDate}/>
<License license={props.details.license}/>
</ul>
Expand Down

0 comments on commit b44ee53

Please sign in to comment.