diff options
author | Ted Humphrey <Thomas.Humphrey@att.com> | 2020-07-14 09:04:01 -0400 |
---|---|---|
committer | Ted Humphrey <Thomas.Humphrey@att.com> | 2020-07-14 09:04:01 -0400 |
commit | 14c47dc6bc1bd4632df62fd41b54a8094578d2c7 (patch) | |
tree | df63aa150ce3911582553778ba1711a6546f63b9 /ui-react/src/components/dialogs/Loop | |
parent | 369ba144248faa94ba50669a6886745040e9475f (diff) |
Support disabling of Loop Instance Properties "Save" button
Issue-ID: CLAMP-895
Change-Id: I0e8fd70b750a59c14bb8e73407c49cc09f1d2657
Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
Diffstat (limited to 'ui-react/src/components/dialogs/Loop')
-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> ); |