mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
853dd09290
commit
47648ffcb2
1 changed files with 7 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IFilterListsS
|
|||
filterMethod: (filter: any, row: any) => row[filter.id].join().toUpperCase()
|
||||
.includes(filter.value.toUpperCase()),
|
||||
sortMethod: (a: any, b: any) => a.join().toUpperCase() > b.join().toUpperCase() ? 1 : -1,
|
||||
Cell: (cell: any) => <div>{cell.value.join(", ")}</div>,
|
||||
Cell: (cell: any) => <div>{cell.value.map((e: any) => e.name).join(", ")}</div>,
|
||||
style: { whiteSpace: "inherit"},
|
||||
width: 100,
|
||||
headerClassName: "hidden-xs",
|
||||
|
|
@ -89,10 +89,15 @@ export class Home extends React.Component<RouteComponentProps<{}>, IFilterListsS
|
|||
interface IFilterListSummaryDto {
|
||||
id: number;
|
||||
name: string;
|
||||
languages: string[];
|
||||
languages: IListLanguageDto[];
|
||||
viewUrl: string;
|
||||
}
|
||||
|
||||
interface IListLanguageDto {
|
||||
name: string;
|
||||
iso6391: string;
|
||||
}
|
||||
|
||||
//TODO: deduplicate function (maybe to a utils.js) also in ListDetailsModal.tsx
|
||||
function SubscribeUrl(props: any) {
|
||||
return <a href={`abp:subscribe?location=${encodeURIComponent(props.url)}&title=${encodeURIComponent(props.name)}`}
|
||||
|
|
|
|||
Loading…
Reference in a new issue