diff --git a/src/FilterLists.Services/FilterListService/FilterListSummaryDto.cs b/src/FilterLists.Services/FilterListService/FilterListSummaryDto.cs index 9a7d4039e..0558d1484 100644 --- a/src/FilterLists.Services/FilterListService/FilterListSummaryDto.cs +++ b/src/FilterLists.Services/FilterListService/FilterListSummaryDto.cs @@ -4,5 +4,6 @@ public class FilterListSummaryDto { public int Id { get; set; } public string Name { get; set; } + public string ViewUrl { get; set; } } } \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/components/Home.tsx b/src/FilterLists.Web/ClientApp/components/Home.tsx index 8114595cf..7380a4a9a 100644 --- a/src/FilterLists.Web/ClientApp/components/Home.tsx +++ b/src/FilterLists.Web/ClientApp/components/Home.tsx @@ -49,6 +49,16 @@ export class Home extends React.Component, IFilterListsS Cell: (row: any) => , style: { textAlign: "center" }, width: 100 + }, + { + Header: "Subscribe", + accessor: "viewUrl", + sortable: false, + Cell: (row: any) => , + style: { textAlign: "center" }, + width: 100, + headerClassName: "hidden-xs", + className: "hidden-xs" } ]}/>; } @@ -57,4 +67,14 @@ export class Home extends React.Component, IFilterListsS interface IFilterListSummaryDto { id: number; name: string; + viewUrl: string; +} + +//TODO: deduplicate function (maybe to a utils.js) also in ListDetailsModal.tsx +function SubscribeUrl(props: any) { + return + Subscribe + ; } \ No newline at end of file