aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-08-15 13:43:25 +0000
committerGerrit Code Review <gerrit@onap.org>2017-08-15 13:43:25 +0000
commitcc6168b5ca4fbec2bd0f4e697a3a123fe7952422 (patch)
tree4986fccc9a16701bc2396a9a82465a5f8356954f /catalog-ui/src
parented4ad21b47d1643f8b435605e35a926f12fb3cf5 (diff)
parent335d13c0e57ae61148b7a0871c5c9e46f768cd93 (diff)
Merge "[SDC-235] rebase code"
Diffstat (limited to 'catalog-ui/src')
-rw-r--r--catalog-ui/src/app/view-models/forms/property-forms/module-property-modal/module-property-model.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/catalog-ui/src/app/view-models/forms/property-forms/module-property-modal/module-property-model.ts b/catalog-ui/src/app/view-models/forms/property-forms/module-property-modal/module-property-model.ts
index 4c3922264c..3a61371e85 100644
--- a/catalog-ui/src/app/view-models/forms/property-forms/module-property-modal/module-property-model.ts
+++ b/catalog-ui/src/app/view-models/forms/property-forms/module-property-modal/module-property-model.ts
@@ -86,7 +86,8 @@ export class ModulePropertyView extends PropertyFormBaseView {
let property = _.find(this.selectedModule.properties, (property) => {
return property.uniqueId === this.$scope.property.uniqueId;
});
- if (property.value !== this.$scope.property.value) {
+
+ if (!property.readonly && property.value !== this.$scope.property.value) {
if (this.component.isResource()) {
(<Resource>this.component).updateResourceGroupProperties(this.selectedModule, [this.$scope.property]).then(onSuccess, onFailed); // for now we only update one property at a time
}
@@ -101,6 +102,8 @@ export class ModulePropertyView extends PropertyFormBaseView {
}
} else {
deferred.resolve(true);
+ this.$uibModalInstance.close();
+
}
return deferred.promise;
}