diff options
author | 2021-02-10 11:59:52 +0200 | |
---|---|---|
committer | 2021-02-10 11:59:52 +0200 | |
commit | eb0b9c19775ad45bbd8d06da51cbc296e1f17db7 (patch) | |
tree | 9f999f4e2bfcd5c5e5981da6e4c91b10b32efae8 /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts | |
parent | efe93197f7aa9b1acbcdd426f433d21506b3bbb0 (diff) |
detect paste change in ace-editor
Issue-ID: CCSDK-3149
Signed-off-by: Eltanany Shaaban <shaaban.eltanany.ext@orange.com>
Change-Id: I0d636ba3d2a7b6097083f18763f8eba92187d179
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts index 1297bc14e..b2f2693b6 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/dsl-definitions-tab/dsl-definitions-tab.component.ts @@ -1,4 +1,4 @@ -import {Component, OnInit} from '@angular/core'; +import {Component, EventEmitter, OnInit, Output} from '@angular/core'; import {DslDefinition} from '../mapping-models/CBAPacakge.model'; import {PackageCreationStore} from '../package-creation.store'; @@ -10,6 +10,7 @@ import {PackageCreationStore} from '../package-creation.store'; export class DslDefinitionsTabComponent implements OnInit { dslDefinition: DslDefinition = new DslDefinition(); + @Output() changeEvent = new EventEmitter<string>(); lang = 'json'; constructor(private packageCreationStore: PackageCreationStore) { @@ -27,4 +28,12 @@ export class DslDefinitionsTabComponent implements OnInit { textChanged(event) { this.packageCreationStore.changeDslDefinition(this.dslDefinition); } + + callParent(): void { + this.changeEvent.next('some changes to enable save '); + } + + onPaste($event: ClipboardEvent) { + this.callParent(); + } } |