From ab2756ebf379bfca27d4c310a87bd47b6ca2ada2 Mon Sep 17 00:00:00 2001 From: Tarren Anderson Date: Thu, 28 Sep 2023 14:42:21 -0500 Subject: [PATCH] Adjust Save Checks --- .../lwc/bulkServiceDeliveryUI/bulkServiceDeliveryUI.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/force-app/main/default/lwc/bulkServiceDeliveryUI/bulkServiceDeliveryUI.js b/force-app/main/default/lwc/bulkServiceDeliveryUI/bulkServiceDeliveryUI.js index f87abb54a..191efe86a 100644 --- a/force-app/main/default/lwc/bulkServiceDeliveryUI/bulkServiceDeliveryUI.js +++ b/force-app/main/default/lwc/bulkServiceDeliveryUI/bulkServiceDeliveryUI.js @@ -225,16 +225,15 @@ export default class BulkServiceDeliveryUI extends NavigationMixin(LightningElem // eslint-disable-next-line no-unused-vars handleRowError(event) { this.errorCount++; - if (this.savingComplete()) { this.showSaveSummaryToast(); + this.isSaving = false; } } handleSave() { let rows = this.template.querySelectorAll("c-service-delivery-row"); - this.isSaving = true; this.savedCount = 0; this.errorCount = 0; this.targetSaveCount = 0; @@ -246,13 +245,13 @@ export default class BulkServiceDeliveryUI extends NavigationMixin(LightningElem } if (row.isDirty) { this.currentSaveCount++; + this.isSaving = true; } row.saveRow(); }); if (this.targetSaveCount === 0) { this.dispatchEvent(new CustomEvent("done")); - this.isSaving = false; } } @@ -262,11 +261,11 @@ export default class BulkServiceDeliveryUI extends NavigationMixin(LightningElem if (this.savingComplete()) { this.showSaveSummaryToast(); + this.isSaving = false; } if (this.savedCount === this.targetSaveCount) { this.dispatchEvent(new CustomEvent("done")); - this.isSaving = false; } }