Merge pull request #1 from clayschaad/fix-dropdown

Reload page after save
This commit is contained in:
Claudio Schaad 2025-06-07 18:01:50 +02:00 committed by GitHub
commit 541da94d7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 1 deletions

View file

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

View file

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

View file

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

View file

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