diff options
Diffstat (limited to 'ui-react/src/components/dialogs')
-rw-r--r-- | ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js | 6 | ||||
-rw-r--r-- | ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js index 453ca6bb4..da2d4230b 100644 --- a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js +++ b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js @@ -72,8 +72,10 @@ export default class ConfigurationPolicyModal extends React.Component { JSONEditor.defaults.options.disable_array_delete_all_rows = false; JSONEditor.defaults.options.show_errors = 'always'; - this.state.jsonEditor = new JSONEditor(document.getElementById("editor"), - { schema: toscaModel.schema, startval: editorData }); + this.setState({ + jsonEditor: new JSONEditor(document.getElementById("editor"), + { schema: toscaModel.schema, startval: editorData }) + }) } diff --git a/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js b/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js index 6822f3ff3..2a812c877 100644 --- a/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js +++ b/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js @@ -217,7 +217,7 @@ export default class OperationalPolicyModal extends React.Component { </div> <span id="formSpan" style={{ display: 'none' }}> - <form className="policyProperties" className="form-horizontal" + <form className="policyProperties form-horizontal" style={{ border: '2px dotted gray' }} title="Operational Policy Properties"> <div className="form-group clearfix"> @@ -350,7 +350,7 @@ export default class OperationalPolicyModal extends React.Component { </div> </div> </form> - <form className="policyTarget" className="form-horizontal" + <form className="policyTarget form-horizontal" title="Operational Policy Target" style={{ border: '2px dotted gray' }}> <div className="form-group clearfix"> <label htmlFor="type" className="col-sm-4 control-label"> Target @@ -437,7 +437,7 @@ export default class OperationalPolicyModal extends React.Component { </select> </div> </div> - <form className="guardProperties" className="form-horizontal" + <form className="guardProperties form-horizontal" title="Guard policy associated" style={{ border: '2px dotted gray' }}> <div className="form-group clearfix withnote"> |