mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add ViewUrl to front-end
This commit is contained in:
parent
c49c1809b3
commit
6bcfde5e9b
2 changed files with 4 additions and 0 deletions
|
|
@ -5,5 +5,6 @@ public class FilterListSummaryDto
|
|||
public int Id { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string ViewUrl { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -44,6 +44,8 @@ export class Home extends React.Component<RouteComponentProps<{}>, IFilterListsS
|
|||
<tr key={filterList.id}>
|
||||
<td>{filterList.name}</td>
|
||||
<td>{filterList.description}</td>
|
||||
<td><a href="{filterList.viewUrl}">View</a></td>
|
||||
<td><a href="abp:subscribe?location={filterList.viewUrl}">Subscribe</a></td>
|
||||
</tr>
|
||||
)}
|
||||
</tbody>
|
||||
|
|
@ -55,4 +57,5 @@ interface IFilterList {
|
|||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
viewUrl: string;
|
||||
}
|
||||
Loading…
Reference in a new issue