Skip to content

Commit

Permalink
+ animation delay
Browse files Browse the repository at this point in the history
  • Loading branch information
NicklausBrain committed Dec 1, 2024
1 parent 7afb8d8 commit 20b699d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions My1kWordsEe/Components/Pages/FavoritesPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
PreloadService.Show(SpinnerColor.Light, "Saving data...");
var user = await UserAccessor.GetRequiredUserAsync(User);
Favorites = await AddToFavoritesCommand.Invoke(user.Id, favorite);
await Task.Delay(300);
PreloadService.Hide();
StateHasChanged();
}
Expand All @@ -51,6 +52,7 @@
PreloadService.Show(SpinnerColor.Light, "Saving data...");
var user = await UserAccessor.GetRequiredUserAsync(User);
Favorites = await RemoveFromFavoritesCommand.Invoke(user.Id, favorite);
await Task.Delay(300);
PreloadService.Hide();
StateHasChanged();
}
Expand Down
2 changes: 2 additions & 0 deletions My1kWordsEe/Components/Pages/WordPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
PreloadService.Show(SpinnerColor.Light, "Saving data...");
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 76 in My1kWordsEe/Components/Pages/WordPage.razor

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
Favorites = await AddToFavoritesCommand.Invoke(user.Id, favorite);
await Task.Delay(300);
PreloadService.Hide();
StateHasChanged();
}
Expand All @@ -85,6 +86,7 @@
var user = await UserAccessor.GetRequiredUserAsync(User);

Check warning on line 86 in My1kWordsEe/Components/Pages/WordPage.razor

View workflow job for this annotation

GitHub Actions / test

Possible null reference argument for parameter 'user' in 'Task<ApplicationUser> IdentityUserAccessor.GetRequiredUserAsync(ClaimsPrincipal user)'.
Favorites = await RemoveFromFavoritesCommand.Invoke(user.Id, favorite);
PreloadService.Hide();
await Task.Delay(300);
StateHasChanged();
}

Expand Down

0 comments on commit 20b699d

Please sign in to comment.