AccountingNext/Schaad.Accounting.UI/Components/Pages/Home.razor.cs
Claudio Schaad 97bf85d6a8 PR U-10: split Home into StatementImport and PendingBookings
Home shrinks from ~200-line codebehind + 100-line markup to a
10-line orchestrator holding a @ref to <PendingBookings/> and
wiring <StatementImport OnImported="RefreshPendingAsync"/> to it.

Also renames IsCanceled -> cancelRequested and clears the Files
dictionary after each import batch.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-06 16:29:51 +02:00

16 lines
351 B
C#

using Microsoft.AspNetCore.Components;
namespace Schaad.Accounting.UI.Components.Pages;
public partial class Home : ComponentBase
{
private PendingBookings? pendingBookings;
private async Task RefreshPendingAsync()
{
if (pendingBookings is not null)
{
await pendingBookings.RefreshAsync();
}
}
}