add ViewUrl to front-end

This commit is contained in:
Collin M. Barrett 2018-01-31 14:12:15 -06:00
parent c49c1809b3
commit 6bcfde5e9b
2 changed files with 4 additions and 0 deletions

View file

@ -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; }
}
}

View file

@ -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;
}