summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-08-13 16:51:44 +0300
committerMichael Lando <ml636r@att.com>2017-08-13 17:08:41 +0300
commit335d13c0e57ae61148b7a0871c5c9e46f768cd93 (patch)
tree0aec18acdd36c8092ea112e0a7d96dc78e35eb89 /catalog-ui/src
parentce07d7cd59425944f85d0fef5126ebeef731bc7b (diff)
[SDC-235] rebase code
Change-Id: Iea503188e521fa3846f580ced7c1c4fce303abe5 Signed-off-by: Michael Lando <ml636r@att.com>
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;
}