diff options
author | 2020-09-16 09:49:11 +0200 | |
---|---|---|
committer | 2020-09-16 15:07:37 +0200 | |
commit | 06537055eb0b9bfb2a6f23a54630cd7902c70525 (patch) | |
tree | 3d2ac3165730c4af116619a52f1d25bffaad751b /cds-ui/designer-client/src/app/common/core/canDactivate | |
parent | 9c1c061c8e80f41f3838dfaf487b54af36ad8071 (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/core/canDactivate')
-rw-r--r-- | cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts | 2 |
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; } } |