Filter Layers by Type
This commit is contained in:
@@ -58,6 +58,20 @@ public partial class LayerListComponent : ComponentBase
|
||||
await LoadLayers();
|
||||
}
|
||||
|
||||
private async Task OnTypeClear()
|
||||
{
|
||||
filterRequest.Type = null;
|
||||
filterRequest.Page = 1;
|
||||
await LoadLayers();
|
||||
}
|
||||
|
||||
private async Task OnTypeChanged(LayerType? type)
|
||||
{
|
||||
filterRequest.Type = type;
|
||||
filterRequest.Page = 1;
|
||||
await LoadLayers();
|
||||
}
|
||||
|
||||
private void OnRowClick(LayerDto layer)
|
||||
{
|
||||
NavigationManager.NavigateTo($"/layers/{layer.Id}");
|
||||
|
||||
Reference in New Issue
Block a user