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

View File

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

View File

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

View File

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

View File

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

View File

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