aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts')
-rw-r--r--catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts18
1 files changed, 17 insertions, 1 deletions
diff --git a/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts b/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts
index c2a872fe9b..d5a49f8732 100644
--- a/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts
+++ b/catalog-ui/src/app/ng2/components/logic/inputs-table/inputs-table.component.ts
@@ -185,7 +185,23 @@ export class InputsTableComponent {
modelProperty.constraints = tempProperty.constraints;
});
}
- this.modalsHandler.newOpenEditPropertyModal(modelProperty, [],true, 'component', modelProperty.resourceInstanceUniqueId, this.parentComponent, inputProperty);
+ this.modalsHandler.newOpenEditPropertyModal(modelProperty, [],true, 'component', modelProperty.resourceInstanceUniqueId, this.parentComponent, inputProperty).then(result => {
+ let newInputs : Array<InputFEModel> = [];
+ this.inputs.forEach(input => {
+ if (input.uniqueId != inputProperty.uniqueId) {
+ newInputs.push(input);
+ } else {
+ let newMetadataEntries : Array<MetadataEntry> = [];
+ for (let key of Object.keys(inputProperty.metadata)){
+ newMetadataEntries.push(new MetadataEntry(key, inputProperty.metadata[key]));
+ }
+ inputProperty.metadataEntries = [];
+ inputProperty.metadataEntries = newMetadataEntries;
+ newInputs.push(inputProperty);
+ }
+ });
+ this.inputs = newInputs;
+ });
}
private createPropertyModel(inputproperty: InputFEModel){