Skip to content

Commit

Permalink
Merge pull request #354 from ix-ax/AxoData_Bug_Repair
Browse files Browse the repository at this point in the history
DataExchangeViewModel changed
  • Loading branch information
PTKu committed Mar 15, 2024
2 parents 4d0e1e0 + 11435b1 commit 5c3b654
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ internal bool IsLockedByMeOrNull()
public Task FillObservableRecordsAsync()
{
//let another thread to load records, we need main thread to show loading symbol in blazor page
return Task.Run(async () =>
return Task.Run(() =>
{
IsBusy = true;
UpdateObservableRecords();
Expand Down Expand Up @@ -218,6 +218,9 @@ public async Task CreateNew()
{
await FillObservableRecordsAsync();
CreateItemId = null;

if (StateHasChangedDelegate != null)
StateHasChangedDelegate.Invoke();
}
}

Expand All @@ -238,8 +241,8 @@ public async void Delete()
UpdateObservableRecords();
}

StateHasChangedDelegate.Invoke();

if (StateHasChangedDelegate != null)
StateHasChangedDelegate.Invoke();
}

public async Task Copy()
Expand All @@ -258,6 +261,9 @@ public async Task Copy()
{
UpdateObservableRecords();
CreateItemId = null;

if (StateHasChangedDelegate != null)
StateHasChangedDelegate.Invoke();
}
}

Expand Down

0 comments on commit 5c3b654

Please sign in to comment.