diff options
author | Eltanany Shaaban <shaaban.eltanany.ext@orange.com> | 2021-02-02 12:56:39 +0200 |
---|---|---|
committer | Eltanany Shaaban <shaaban.eltanany.ext@orange.com> | 2021-02-02 13:14:04 +0200 |
commit | 7ecb41358ade47373b28df536dbda709e1a8a45e (patch) | |
tree | 7f9c6a6ae0f1f0c7a204c037cac926e734195fe0 /cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes | |
parent | b62aabac76abe92f04e0991157292c276d3d9177 (diff) |
fixing input and output action
Issue-ID: CCSDK-2779
Issue-ID: CCSDK-3025
Signed-off-by: Eltanany Shaaban <shaaban.eltanany.ext@orange.com>
Change-Id: Ie9a89b5312a173925d44b9868d796775912304a8
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes')
2 files changed, 6 insertions, 4 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.html b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.html index 178f8f098..3b946de15 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.html +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.html @@ -57,9 +57,9 @@ type="button" aria-hidden="true"></i> </label> <div class="attributeOptions"> - <a data-toggle="modal" data-target="#exampleModalScrollable2" + <!--<a data-toggle="modal" data-target="#exampleModalScrollable2" class="accordion-delete editAttribute" tooltip="Edit Attribute" - placement="bottom" (click)="editAttribute(input)"><i class="icon-edit"></i></a> + placement="bottom" (click)="editAttribute(input)"><i class="icon-edit"></i></a>--> <a class="accordion-delete deleteAttribute" tooltip="Delete Attribute" (click)="markDeletedInput(input)" data-toggle="modal" data-target="#exampleModalScrollable1" placement="bottom"><i @@ -702,4 +702,4 @@ </div> </div> </div> -</div>
\ No newline at end of file +</div> diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts index 6873f8948..f33965044 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts @@ -120,7 +120,7 @@ export class ActionAttributesComponent implements OnInit { console.log(input); if (input && input.type && input.name) { const insertedInputActionAttribute = Object.assign({}, input); - if (!this.newInputs.includes(insertedInputActionAttribute)) { + if (!this.newInputs.some(obj => obj.name === input.name)) { this.newInputs.push(insertedInputActionAttribute); } } @@ -178,6 +178,8 @@ export class ActionAttributesComponent implements OnInit { this.outputs.push(output); } }); + this.newInputs = []; + this.newOutputs = []; } private getValue() { |