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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user