summaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
diff options
context:
space:
mode:
authorXue Gao <xg353y@intl.att.com>2020-03-10 10:18:34 +0000
committerGerrit Code Review <gerrit@onap.org>2020-03-10 10:18:34 +0000
commit0c4e6af85daabe730917898f466a1d45cbc16f92 (patch)
tree7fe94ceecd7d69e57858ae8b25babdaaedb6ca3f /ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
parent5c3a825851bb1a345620c5c4951726c5b94a0341 (diff)
parent2dd4e997c1ccf5dab4dfb7665ce74c0fd1f13e49 (diff)
Merge "Rework tosca converter"
Diffstat (limited to 'ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js')
-rw-r--r--ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js23
1 files changed, 12 insertions, 11 deletions
diff --git a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
index 3fa0c0ca..da65ac9f 100644
--- a/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
+++ b/ui-react/src/components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal.js
@@ -85,19 +85,20 @@ export default class ConfigurationPolicyModal extends React.Component {
}
var editorData = this.state.loopCache.getMicroServicePropertiesForName(this.state.policyName);
- JSONEditor.defaults.options.theme = 'bootstrap4';
- //JSONEditor.defaults.options.iconlib = 'bootstrap2';
- JSONEditor.defaults.options.object_layout = 'grid';
- JSONEditor.defaults.options.disable_properties = true;
- JSONEditor.defaults.options.disable_edit_json = false;
- JSONEditor.defaults.options.disable_array_reorder = true;
- JSONEditor.defaults.options.disable_array_delete_last_row = true;
- JSONEditor.defaults.options.disable_array_delete_all_rows = false;
- JSONEditor.defaults.options.show_errors = 'always';
-
this.setState({
jsonEditor: new JSONEditor(document.getElementById("editor"),
- { schema: toscaModel.schema, startval: editorData })
+ {
+ schema: toscaModel,
+ startval: editorData,
+ theme: 'bootstrap4',
+ object_layout: 'grid',
+ disable_properties: true,
+ disable_edit_json: false,
+ disable_array_reorder: true,
+ disable_array_delete_last_row: true,
+ disable_array_delete_all_rows: false,
+ show_errors: 'always'
+ })
})
}