From 06537055eb0b9bfb2a6f23a54630cd7902c70525 Mon Sep 17 00:00:00 2001 From: ShaabanEltanany Date: Wed, 16 Sep 2020 09:49:11 +0200 Subject: disable componetCanDeactivate with some functionality Issue-ID: CCSDK-2739 Signed-off-by: ShaabanEltanany Change-Id: Ic3f3905b062f42365c8d7eed22d0ee9504906ee5 --- .../src/app/common/core/canDactivate/ComponentCanDeactivate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cds-ui/designer-client/src/app/common') diff --git a/cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts b/cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts index e0dac0dc3..3435b10d3 100644 --- a/cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts +++ b/cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts @@ -7,7 +7,7 @@ export abstract class ComponentCanDeactivate { @HostListener('window:beforeunload', ['$event']) unloadNotification($event: any) { - if (!this.canDeactivate()) { + if (this.canDeactivate()) { $event.returnValue = true; } } -- cgit 1.2.3-korg