2022-03-11 14:21:04 +01:00
|
|
|
|
|
|
|
// Copyright (C) 2022 FCS Frede's Computer Services.
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
2022-03-13 15:13:49 +01:00
|
|
|
// it under the terms of the Affero GNU General Public License as
|
2022-03-11 14:21:04 +01:00
|
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2022-03-13 15:13:49 +01:00
|
|
|
// Affero GNU General Public License for more details.
|
2022-03-11 14:21:04 +01:00
|
|
|
//
|
2022-03-13 15:13:49 +01:00
|
|
|
// You should have received a copy of the Affero GNU General Public License
|
2022-03-11 14:21:04 +01:00
|
|
|
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
|
|
|
namespace Wonky.Client.Components;
|
|
|
|
|
|
|
|
public partial class CompanySearchField
|
|
|
|
{
|
|
|
|
[Parameter]
|
|
|
|
public EventCallback<string> OnFilterChanged { get; set; }
|
|
|
|
|
|
|
|
private async Task ApplyFilter(ChangeEventArgs eventArgs)
|
|
|
|
{
|
|
|
|
if (eventArgs?.Value?.ToString() == "name")
|
|
|
|
return;
|
|
|
|
await OnFilterChanged.InvokeAsync(eventArgs?.Value?.ToString());
|
|
|
|
}
|
|
|
|
}
|