Switch redistibutable edit button to link

net8.0
Pat Hartl 2023-11-29 17:09:04 -06:00
parent a533e9ad8c
commit 1d2f82fdef
1 changed files with 1 additions and 6 deletions

View File

@ -39,7 +39,7 @@
<ChildContent> <ChildContent>
<Space Direction="DirectionVHType.Horizontal"> <Space Direction="DirectionVHType.Horizontal">
<SpaceItem> <SpaceItem>
<Button OnClick="() => Edit(context)">Edit</Button> <a href="/Redistributables/@(context.Id)" class="ant-btn ant-btn-primary">Edit</a>
</SpaceItem> </SpaceItem>
<SpaceItem> <SpaceItem>
<Popconfirm OnConfirm="() => Delete(context)" Title="Are you sure you want to delete this redistributable?"> <Popconfirm OnConfirm="() => Delete(context)" Title="Are you sure you want to delete this redistributable?">
@ -85,11 +85,6 @@
NavigationManager.NavigateTo("/Redistributables/Add"); NavigationManager.NavigateTo("/Redistributables/Add");
} }
private void Edit(Redistributable redistributable)
{
NavigationManager.NavigateTo($"/Redistributables/{redistributable.Id}/General");
}
private async Task Delete(Redistributable redistributable) private async Task Delete(Redistributable redistributable)
{ {
Redistributables = new List<Redistributable>(); Redistributables = new List<Redistributable>();