From 04eca32f0e7be34993e6462a16a60abd92320a71 Mon Sep 17 00:00:00 2001 From: Mykola Mozghovyi Date: Sun, 1 Dec 2024 19:41:36 +0200 Subject: [PATCH] + display en sentence (#117) * + animation delay * + display EnSentence --- My1kWordsEe/Components/Pages/FavoritesPage.razor | 2 ++ My1kWordsEe/Components/Pages/Games/ListenToEeGamePage.razor | 4 ++++ My1kWordsEe/Components/Pages/WordPage.razor | 2 ++ 3 files changed, 8 insertions(+) diff --git a/My1kWordsEe/Components/Pages/FavoritesPage.razor b/My1kWordsEe/Components/Pages/FavoritesPage.razor index cf325e4..f4c2035 100644 --- a/My1kWordsEe/Components/Pages/FavoritesPage.razor +++ b/My1kWordsEe/Components/Pages/FavoritesPage.razor @@ -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(); } @@ -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(); } diff --git a/My1kWordsEe/Components/Pages/Games/ListenToEeGamePage.razor b/My1kWordsEe/Components/Pages/Games/ListenToEeGamePage.razor index 970d199..c31a81a 100644 --- a/My1kWordsEe/Components/Pages/Games/ListenToEeGamePage.razor +++ b/My1kWordsEe/Components/Pages/Games/ListenToEeGamePage.razor @@ -87,6 +87,8 @@ {
  • @checkResult.EeSentence +
    + (@checkResult.EnSentence)
  • } else @@ -97,6 +99,8 @@
  • @checkResult.EeSentence +
    + (@checkResult.EnSentence)
  • @checkResult.EnComment diff --git a/My1kWordsEe/Components/Pages/WordPage.razor b/My1kWordsEe/Components/Pages/WordPage.razor index 76dec2c..a5026e3 100644 --- a/My1kWordsEe/Components/Pages/WordPage.razor +++ b/My1kWordsEe/Components/Pages/WordPage.razor @@ -75,6 +75,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(); } @@ -85,6 +86,7 @@ var user = await UserAccessor.GetRequiredUserAsync(User); Favorites = await RemoveFromFavoritesCommand.Invoke(user.Id, favorite); PreloadService.Hide(); + await Task.Delay(300); StateHasChanged(); }