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.
This commit is contained in:
2026-01-09 10:51:38 -05:00
parent c4e7edf3db
commit eb342cd6a6
@@ -343,9 +343,9 @@
await Context.SaveChangesAsync(); await Context.SaveChangesAsync();
Snackbar.Add($"Successfully saved {savedCount} occurrence(s) to database", Severity.Success); Snackbar.Add($"Successfully saved {savedCount} occurrence(s) to database", Severity.Success);
// Navigate back to the calendar index after a short delay // Clear input and output instead of navigating
await Task.Delay(1000); _inputText = string.Empty;
NavigationManager.NavigateTo("/calendar/event-occurrences"); _parseResult = null;
} }
catch (Exception ex) catch (Exception ex)
{ {