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>
16 lines
351 B
C#
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();
|
|
}
|
|
}
|
|
}
|