diff options
author | KAPIL SINGAL <ks220y@att.com> | 2020-09-16 14:42:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-09-16 14:42:45 +0000 |
commit | 6c77ea314cb8cdac8f602cea608ae06108ab6062 (patch) | |
tree | bd29abaf3d6143a869ff8eac35716513dd2a4344 /cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts | |
parent | 07090b2d199108935a028afa3bb43d3bf5190723 (diff) | |
parent | 06537055eb0b9bfb2a6f23a54630cd7902c70525 (diff) |
Merge "disable componetCanDeactivate with some functionality"
Diffstat (limited to 'cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts')
-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; } } |