summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/common
diff options
context:
space:
mode:
authorShaabanEltanany <shaaban.eltanany.ext@orange.com>2020-09-16 09:49:11 +0200
committerShaabanEltanany <shaaban.eltanany.ext@orange.com>2020-09-16 15:07:37 +0200
commit06537055eb0b9bfb2a6f23a54630cd7902c70525 (patch)
tree3d2ac3165730c4af116619a52f1d25bffaad751b /cds-ui/designer-client/src/app/common
parent9c1c061c8e80f41f3838dfaf487b54af36ad8071 (diff)
disable componetCanDeactivate with some functionality
Issue-ID: CCSDK-2739 Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com> Change-Id: Ic3f3905b062f42365c8d7eed22d0ee9504906ee5
Diffstat (limited to 'cds-ui/designer-client/src/app/common')
-rw-r--r--cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts2
1 files changed, 1 insertions, 1 deletions
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;
}
}