From a8fb8d4620e53fcf3f965d114e47c5fc65e5d219 Mon Sep 17 00:00:00 2001 From: Andreas Sattler <1102080+asattler@users.noreply.github.com> Date: Tue, 7 Feb 2023 12:30:53 +0100 Subject: [PATCH] Update service-item-edit.component.ts Without the added "else if", the sideSheet will always get closed even though the User declined the "Heading Cancel Request Process" prompt in line 53 --- .../service-item-edit/service-item-edit.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imxweb/projects/qer/src/lib/product-selection/service-item-edit/service-item-edit.component.ts b/imxweb/projects/qer/src/lib/product-selection/service-item-edit/service-item-edit.component.ts index fff0c025b..45b77cedb 100644 --- a/imxweb/projects/qer/src/lib/product-selection/service-item-edit/service-item-edit.component.ts +++ b/imxweb/projects/qer/src/lib/product-selection/service-item-edit/service-item-edit.component.ts @@ -69,8 +69,9 @@ export class ServiceItemEditComponent { })) { return this.sideSheetRef.close(true); } + } else if(submit) { + return this.sideSheetRef.close(true); } - return this.sideSheetRef.close(true); } public hasBulkItemsWithDecision(): boolean {