1.1.033 Fényképek beküldése javítása
This commit is contained in:
@@ -109,7 +109,7 @@ public partial class CheckListWorkPage : ContentPage
|
||||
}
|
||||
|
||||
}
|
||||
private async Task OnSave()
|
||||
private async Task OnSave(bool withReload = true)
|
||||
{
|
||||
IsLoading = true;
|
||||
try
|
||||
@@ -126,9 +126,9 @@ public partial class CheckListWorkPage : ContentPage
|
||||
{
|
||||
checkListRow.Answer = "Nem";
|
||||
}
|
||||
await _checkListService.UpdateCheckListRow(checkListRow);
|
||||
await _checkListService.UpdateCheckListRow(checkListRow, withReload);
|
||||
}
|
||||
await LoadCheckPointCheckListRows();
|
||||
if (withReload) await LoadCheckPointCheckListRows();
|
||||
});
|
||||
}
|
||||
catch (Exception)
|
||||
@@ -175,14 +175,14 @@ public partial class CheckListWorkPage : ContentPage
|
||||
{
|
||||
if (MediaPicker.IsCaptureSupported)
|
||||
{
|
||||
//await OnSave();
|
||||
await OnSave(false);
|
||||
var photo = await MediaPicker.CapturePhotoAsync();
|
||||
if (photo != null)
|
||||
{
|
||||
checkListRowDTO.Photo = await ResizePicture(photo, 500);
|
||||
checkListRowDTO.Answer = "Igen";
|
||||
|
||||
await _checkListService.UpdateCheckListRow(checkListRowDTO);
|
||||
await _checkListService.UpdateCheckListRow(checkListRowDTO, true);
|
||||
await LoadCheckPointCheckListRows();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user