aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui
diff options
context:
space:
mode:
authorfarida azmy <farida.azmy.ext@orange.com>2021-11-02 12:16:13 +0200
committerfarida azmy <farida.azmy.ext@orange.com>2021-11-02 12:16:13 +0200
commite3f114e4c176e06e90cd7a1a9d858315773b81f9 (patch)
treed4bbabebda949b243a332af8d4cf9bb3a35a94c5 /cds-ui
parentcd39359ab6e7b5e708b770a360ad5c052cead746 (diff)
fix output type remains Other
Issue-ID: CCSDK-3517 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: Iabfd95f9bb4e8b73271b2bb413d6d1175a545b08
Diffstat (limited to 'cds-ui')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/action-attributes/action-attributes.component.ts5
1 files changed, 5 insertions, 0 deletions
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 f33965044..b04e89f21 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
@@ -150,6 +150,7 @@ export class ActionAttributesComponent implements OnInit {
setOutputType(type: string) {
this.outputActionAttribute.type = type;
this.isOutputOtherType = this.checkIfTypeIsOther(type);
+ console.log(this.outputActionAttribute.type , this.isOutputOtherType , this.outputOtherType);
}
checkIfTypeIsOther(type) {
@@ -157,12 +158,16 @@ export class ActionAttributesComponent implements OnInit {
}
submitAttributes() {
+ console.log(this.getValue());
this.addInput(this.inputActionAttribute);
if (this.selectedFunctionName && this.selectedAttributeName) {
console.log(this.getValue());
this.outputActionAttribute.value =
this.getValue();
}
+ if (this.isOutputOtherType) {
+ this.outputActionAttribute.type = this.outputOtherType;
+ }
this.addOutput(this.outputActionAttribute);
this.clearFormInputs();
this.storeOutputs(this.newOutputs);