Fix gitea issues #54

Merged
Egamorf merged 10 commits from fix/correct-gitea-issues into main 2025-05-18 16:27:57 +02:00
6 changed files with 23 additions and 5 deletions
Showing only changes of commit ecbce73a84 - Show all commits

View File

@@ -30,6 +30,7 @@ public partial class GameDetail : GameBaseComponent
try
{
IsLoading = true;
StateHasChanged();
Game = await GameGateway.GetGameById(GameId);
}
@@ -40,6 +41,7 @@ public partial class GameDetail : GameBaseComponent
finally
{
IsLoading = false;
StateHasChanged();
}
}
}

View File

@@ -59,6 +59,7 @@ public partial class GameCreationForm
try
{
IsLoading = true;
StateHasChanged();
int gameId;
var authState = await AuthenticationState.GetAuthenticationStateAsync();
@@ -108,6 +109,7 @@ public partial class GameCreationForm
try
{
IsLoading = true;
StateHasChanged();
GameDto = await GameGateway.GetGameById(gameId);
}
@@ -118,9 +120,8 @@ public partial class GameCreationForm
finally
{
IsLoading = false;
EditContext = new(GameDto);
StateHasChanged();
}
EditContext = new(GameDto);
StateHasChanged();
}
}

View File

@@ -37,6 +37,7 @@ public partial class Games : GameBaseComponent
try
{
IsLoading = displayLoader;
StateHasChanged();
GamesDto = await GameGateway.FetchGames(GameFilter, CurrentPage);
}
@@ -92,6 +93,7 @@ public partial class Games : GameBaseComponent
try
{
IsLoading = true;
StateHasChanged();
await GameGateway.DeleteGame(GameToDelete?.Id ?? 0);
await HandleFetchDatas(false);

View File

@@ -28,6 +28,8 @@ public partial class Login
try
{
IsLoading = true;
StateHasChanged();
await AuthGateway.Login(UserDto);
}
catch (Exception)

View File

@@ -46,6 +46,7 @@ public partial class Users
try
{
IsLoading = displayLoading;
StateHasChanged();
UserList = await UserGateway.GetUsers(FilterParams, CurrentPage);
}
@@ -56,6 +57,7 @@ public partial class Users
finally
{
IsLoading = false;
StateHasChanged();
}
}
@@ -64,6 +66,7 @@ public partial class Users
try
{
IsLoading = true;
StateHasChanged();
Roles = await UserGateway.GetRoles();
}
@@ -74,6 +77,7 @@ public partial class Users
finally
{
IsLoading = false;
StateHasChanged();
}
}
@@ -82,6 +86,7 @@ public partial class Users
try
{
IsLoading = true;
StateHasChanged();
await UserGateway.CreateUser(user);
await FetchUsers();
@@ -93,9 +98,9 @@ public partial class Users
finally
{
IsLoading = false;
StateHasChanged();
UserAdd = new();
}
UserAdd = new();
}
private async Task HandleUpdateUser(UserDto user)
@@ -103,6 +108,7 @@ public partial class Users
try
{
IsLoading = true;
StateHasChanged();
await UserGateway.UpdateUser(user);
await FetchUsers();
@@ -114,6 +120,7 @@ public partial class Users
finally
{
IsLoading = false;
StateHasChanged();
}
}
@@ -129,6 +136,7 @@ public partial class Users
try
{
IsLoading = true;
StateHasChanged();
await UserGateway.DeleteUser(UserDelete.Id);
await FetchUsers();
@@ -140,6 +148,7 @@ public partial class Users
finally
{
IsLoading = false;
StateHasChanged();
}
UserDelete = null;

View File

@@ -24,6 +24,7 @@ public class GameBaseComponent : ComponentBase
try
{
IsLoading = true;
StateHasChanged();
Categories = await GameGateway.FetchCategories();
}
@@ -34,6 +35,7 @@ public class GameBaseComponent : ComponentBase
finally
{
IsLoading = false;
StateHasChanged();
}
}