aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js
diff options
context:
space:
mode:
authorSébastien Determe <sebastien.determe@intl.att.com>2019-10-01 13:22:12 +0000
committerGerrit Code Review <gerrit@onap.org>2019-10-01 13:22:12 +0000
commitc892a9878692babc4fc38bfbf0b310573fe8199d (patch)
tree99df0e19e06080831a9a0e57e9062eb93eb9a56b /ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js
parenta84a7c622ecb0574750038f35195b1534eda7abc (diff)
parent83fe2b0afab57482c548ccb360fc1266891fa051 (diff)
Merge "Fix the ooperational policy ui issue"
Diffstat (limited to 'ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js')
-rw-r--r--ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js18
1 files changed, 16 insertions, 2 deletions
diff --git a/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js b/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js
index 1ebe5f0e8..4dc1f90a0 100644
--- a/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js
+++ b/ui-react/src/components/dialogs/OperationalPolicy/OperationalPolicyModal.js
@@ -77,8 +77,22 @@ export default class OperationalPolicyModal extends React.Component {
}
setDefaultJsonEditorOptions() {
- JSONEditor.defaults.options.theme = 'bootstrap4';
-
+ JSONEditor.defaults.themes.myBootstrap4 = JSONEditor.defaults.themes.bootstrap4.extend({
+ getTab: function(text,tabId) {
+ var liel = document.createElement('li');
+ liel.classList.add('nav-item');
+ var ael = document.createElement("a");
+ ael.classList.add("nav-link");
+ ael.setAttribute("style",'padding:10px;max-width:160px;');
+ ael.setAttribute("href", "#" + tabId);
+ ael.setAttribute('data-toggle', 'tab');
+ text.setAttribute("style",'word-wrap:break-word;');
+ ael.appendChild(text);
+ liel.appendChild(ael);
+ return liel;
+ }
+ });
+ JSONEditor.defaults.options.theme = 'myBootstrap4';
JSONEditor.defaults.options.object_layout = 'grid';
JSONEditor.defaults.options.disable_properties = true;
JSONEditor.defaults.options.disable_edit_json = false;