aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react
diff options
context:
space:
mode:
authorChristophe Closset <christophe.closset@intl.att.com>2020-07-15 07:44:39 +0000
committerGerrit Code Review <gerrit@onap.org>2020-07-15 07:44:39 +0000
commitb165eb5507409cd0e63b4d255202f46c059f7e6d (patch)
tree33bfff957444e759fd3e42d051495838a5b61d91 /ui-react
parent11d9edc1eb1e2d9564666e22eb6a40f886ea4891 (diff)
parent14c47dc6bc1bd4632df62fd41b54a8094578d2c7 (diff)
Merge "Support disabling of Loop Instance Properties "Save" button"
Diffstat (limited to 'ui-react')
-rw-r--r--ui-react/src/components/dialogs/Loop/LoopPropertiesModal.js3
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>
);