From fc03760d52cfa7f3c1cf70ff699385e5f196d135 Mon Sep 17 00:00:00 2001 From: Kevin Jump Date: Wed, 28 Aug 2024 11:20:51 +0100 Subject: [PATCH] capture changes for delete. --- uSync.BackOffice/Services/SyncActionService.cs | 2 +- .../App_Plugins/uSync/settings/usync.controller.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/uSync.BackOffice/Services/SyncActionService.cs b/uSync.BackOffice/Services/SyncActionService.cs index 111c7015..6ea76634 100644 --- a/uSync.BackOffice/Services/SyncActionService.cs +++ b/uSync.BackOffice/Services/SyncActionService.cs @@ -133,7 +133,7 @@ public SyncActionResult ImportPost(SyncActionOptions options, uSyncCallbacks cal callbacks?.Update("Import Complete", 1, 1); - return new SyncActionResult(actions); + return new SyncActionResult(actions.Where(x => x.Change > Core.ChangeType.NoChange)); } public SyncActionResult ExportHandler(SyncActionOptions options, uSyncCallbacks callbacks) diff --git a/uSync.Backoffice.Assets/App_Plugins/uSync/settings/usync.controller.js b/uSync.Backoffice.Assets/App_Plugins/uSync/settings/usync.controller.js index a0145fa2..35ae0971 100644 --- a/uSync.Backoffice.Assets/App_Plugins/uSync/settings/usync.controller.js +++ b/uSync.Backoffice.Assets/App_Plugins/uSync/settings/usync.controller.js @@ -283,6 +283,11 @@ uSync8DashboardService.importPost(vm.results, options, getClientId()) .then(function (results) { + + if (results?.data?.actions) { + vm.results = vm.results.concat(results.data.actions) + } + vm.working = false; vm.reported = true; vm.perf = performance.now() - start;