BUGFIXEK UI oldalon

This commit is contained in:
2025-03-31 22:13:28 +02:00
parent 61dd5bc9a1
commit ea305ebbf4
6 changed files with 22 additions and 17 deletions
@@ -12,7 +12,7 @@ public partial class CheckListPage : ContentPage
private readonly ICheckListService _checkListService;
private readonly IUserService _userService;
private bool _isLoading;
public ICommand NewCommand { get; set; }
public ICommand ContinueCommand { get; set; }
@@ -25,7 +25,7 @@ public partial class CheckListPage : ContentPage
OnPropertyChanged(nameof(IsLoading));
}
}
public CheckListPage()
{
@@ -44,15 +44,21 @@ public partial class CheckListPage : ContentPage
protected override async void OnAppearing()
{
base.OnAppearing();
BindingContext = this;
await LoadCheckListTemplate();
await LoadCheckList();
}
private async void OnNewItem(CheckListTemplateHeaderDTO checkListTemplateHeaderDTO)
{
//await Navigation.PushAsync(new CheckPointEditPage(checkPointDTO));
IsLoading = true;
await _checkListService.StartNew(
new CheckListHeaderNewDTO()
{
UserId = _userService.GetCurrentUser().Id,
CheckListTemplateHeaderId = checkListTemplateHeaderDTO.Id
});
IsLoading = false;
}
private async void OnContinueItem(CheckListHeaderDTO checkListHeaderDTO)
{