Reload page after save

This commit is contained in:
Claudio Schaad 2025-06-07 18:00:47 +02:00
parent a45495c296
commit 496408aa70
4 changed files with 4 additions and 1 deletions

View file

@ -32,6 +32,7 @@
@if (matchingBankTransactions == null || matchingBankTransactions.Count == 0)
{
<p>Keine Transaktionen vorhanden!</p>
<FluentEmoji Value="@(new Emojis.SmileysEmotion.Color.Default.MoneyMouthFace())" />
}
else
{

View file

@ -164,7 +164,7 @@ public partial class Home : ComponentBase
return;
}
transactionRepository.SaveTransaction(transaction);
matchingBankTransactions!.RemoveAll(q => q == transaction);
matchingBankTransactions = viewService.MatchOpenBankTransactions();
await Task.CompletedTask;
}

View file

@ -9,6 +9,7 @@
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.FluentUI.AspNetCore.Components
@using Icons = Microsoft.FluentUI.AspNetCore.Components.Icons
@using Emojis = Microsoft.FluentUI.AspNetCore.Components.Emojis
@using Microsoft.JSInterop
@using Plotly.Blazor
@using Schaad.Accounting.UI

View file

@ -23,6 +23,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.11.8" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Emoji" Version="4.11.8" />
<PackageReference Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.11.8" />
<PackageReference Include="Plotly.Blazor" Version="6.0.1" />
</ItemGroup>