diff options
author | Christophe Closset <christophe.closset@intl.att.com> | 2020-07-15 07:44:39 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-07-15 07:44:39 +0000 |
commit | b165eb5507409cd0e63b4d255202f46c059f7e6d (patch) | |
tree | 33bfff957444e759fd3e42d051495838a5b61d91 /ui-react/src/components | |
parent | 11d9edc1eb1e2d9564666e22eb6a40f886ea4891 (diff) | |
parent | 14c47dc6bc1bd4632df62fd41b54a8094578d2c7 (diff) |
Merge "Support disabling of Loop Instance Properties "Save" button"
Diffstat (limited to 'ui-react/src/components')
-rw-r--r-- | ui-react/src/components/dialogs/Loop/LoopPropertiesModal.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui-react/src/components/dialogs/Loop/LoopPropertiesModal.js b/ui-react/src/components/dialogs/Loop/LoopPropertiesModal.js index c0a2084f5..acd0acade 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()} <Modal.Footer> <Button variant="secondary" type="null" onClick={this.handleClose}>Cancel</Button> - <Button variant="primary" type="submit" onClick={this.handleSave}>Save Changes</Button> + <Button variant="primary" type="submit" disabled={this.readOnly} onClick={this.handleSave}>Save Changes</Button> </Modal.Footer> </ModalStyled> ); |