Switch redistibutable edit button to link
parent
a533e9ad8c
commit
1d2f82fdef
|
@ -39,7 +39,7 @@
|
|||
<ChildContent>
|
||||
<Space Direction="DirectionVHType.Horizontal">
|
||||
<SpaceItem>
|
||||
<Button OnClick="() => Edit(context)">Edit</Button>
|
||||
<a href="/Redistributables/@(context.Id)" class="ant-btn ant-btn-primary">Edit</a>
|
||||
</SpaceItem>
|
||||
<SpaceItem>
|
||||
<Popconfirm OnConfirm="() => Delete(context)" Title="Are you sure you want to delete this redistributable?">
|
||||
|
@ -85,11 +85,6 @@
|
|||
NavigationManager.NavigateTo("/Redistributables/Add");
|
||||
}
|
||||
|
||||
private void Edit(Redistributable redistributable)
|
||||
{
|
||||
NavigationManager.NavigateTo($"/Redistributables/{redistributable.Id}/General");
|
||||
}
|
||||
|
||||
private async Task Delete(Redistributable redistributable)
|
||||
{
|
||||
Redistributables = new List<Redistributable>();
|
||||
|
|
Loading…
Reference in New Issue