Skip to content

Commit fc03760

Browse files
committed
capture changes for delete.
1 parent 610fe13 commit fc03760

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

uSync.BackOffice/Services/SyncActionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public SyncActionResult ImportPost(SyncActionOptions options, uSyncCallbacks cal
133133

134134
callbacks?.Update("Import Complete", 1, 1);
135135

136-
return new SyncActionResult(actions);
136+
return new SyncActionResult(actions.Where(x => x.Change > Core.ChangeType.NoChange));
137137
}
138138

139139
public SyncActionResult ExportHandler(SyncActionOptions options, uSyncCallbacks callbacks)

uSync.Backoffice.Assets/App_Plugins/uSync/settings/usync.controller.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@
283283

284284
uSync8DashboardService.importPost(vm.results, options, getClientId())
285285
.then(function (results) {
286+
287+
if (results?.data?.actions) {
288+
vm.results = vm.results.concat(results.data.actions)
289+
}
290+
286291
vm.working = false;
287292
vm.reported = true;
288293
vm.perf = performance.now() - start;

0 commit comments

Comments
 (0)