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>
26 lines
981 B
Text
26 lines
981 B
Text
@rendermode InteractiveServer
|
|
|
|
<FluentInputFile @ref="@myFileByBuffer"
|
|
AnchorId="MyUploadBuffer"
|
|
DragDropZoneVisible="false"
|
|
Mode="InputFileMode.Buffer"
|
|
Multiple="true"
|
|
MaximumFileSize="@(10 * 1024 * 1024)"
|
|
Accept=".zip, .xml"
|
|
OnProgressChange="@OnProgressChangeAsync"
|
|
OnCompleted="@OnCompletedAsync"/>
|
|
|
|
<FluentProgress Visible="@(progressPercent > 0)" Min="0" Max="100" Value="@progressPercent"/>
|
|
<FluentLabel Alignment="HorizontalAlignment.Center">
|
|
@progressTitle
|
|
</FluentLabel>
|
|
|
|
<FluentButton Appearance="Appearance.Lightweight" IconStart="@(new Icons.Regular.Size16.ArrowUpload())"
|
|
Id="MyUploadBuffer">
|
|
Upload files
|
|
</FluentButton>
|
|
|
|
<FluentButton Appearance="Appearance.Lightweight" IconStart="@(new Icons.Regular.Size16.Dismiss())"
|
|
@onclick="@((e) => cancelRequested = true)">
|
|
Cancel
|
|
</FluentButton>
|