From: Ted Humphrey Date: Tue, 14 Jul 2020 13:04:01 +0000 (-0400) Subject: Support disabling of Loop Instance Properties "Save" button X-Git-Tag: 5.1.0~22^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=clamp.git;a=commitdiff_plain;h=14c47dc6bc1bd4632df62fd41b54a8094578d2c7 Support disabling of Loop Instance Properties "Save" button Issue-ID: CLAMP-895 Change-Id: I0e8fd70b750a59c14bb8e73407c49cc09f1d2657 Signed-off-by: Ted Humphrey --- diff --git a/ui-react/src/components/dialogs/Loop/LoopPropertiesModal.js b/ui-react/src/components/dialogs/Loop/LoopPropertiesModal.js index c0a2084f..acd0acad 100644 --- a/ui-react/src/components/dialogs/Loop/LoopPropertiesModal.js +++ b/ui-react/src/components/dialogs/Loop/LoopPropertiesModal.js @@ -48,6 +48,7 @@ export default class LoopPropertiesModal extends React.Component { this.renderDcaeParameters = this.renderDcaeParameters.bind(this); this.renderAllParameters = this.renderAllParameters.bind(this); this.getDcaeParameters = this.getDcaeParameters.bind(this); + this.readOnly = props.readOnly !== undefined ? props.readOnly : false; } componentWillReceiveProps(newProps) { @@ -109,7 +110,7 @@ export default class LoopPropertiesModal extends React.Component { {this.renderAllParameters()} - + );