From eb342cd6a64d4efd3c5e341f6b47b49d6465a3dc Mon Sep 17 00:00:00 2001 From: James Kolpack Date: Fri, 9 Jan 2026 10:51:38 -0500 Subject: [PATCH] Refactor calendar import process to clear input and output after saving This commit modifies the calendar import functionality to clear the input text and parsing result instead of navigating back to the calendar index after saving occurrences. This change enhances user experience by allowing users to continue importing without interruption. --- WebApp/Components/Features/Calendar/Import.razor | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebApp/Components/Features/Calendar/Import.razor b/WebApp/Components/Features/Calendar/Import.razor index 10a899d..c7f8b32 100644 --- a/WebApp/Components/Features/Calendar/Import.razor +++ b/WebApp/Components/Features/Calendar/Import.razor @@ -343,9 +343,9 @@ await Context.SaveChangesAsync(); Snackbar.Add($"Successfully saved {savedCount} occurrence(s) to database", Severity.Success); - // Navigate back to the calendar index after a short delay - await Task.Delay(1000); - NavigationManager.NavigateTo("/calendar/event-occurrences"); + // Clear input and output instead of navigating + _inputText = string.Empty; + _parseResult = null; } catch (Exception ex) {