From bde44b1b25cd059dfb1bcc4d47f09e8d42a0a4db Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 12 Mar 2019 14:22:29 +0530 Subject: [PATCH 1/3] Added support for conditions in Json form to display fields based on conditional values of other fields --- ui/src/app/components/json-form.directive.js | 1 + ui/src/app/components/react/json-form-rc-select.jsx | 2 +- .../app/components/react/json-form-schema-form.jsx | 12 ++++++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ui/src/app/components/json-form.directive.js b/ui/src/app/components/json-form.directive.js index db6325f07..b12af5556 100644 --- a/ui/src/app/components/json-form.directive.js +++ b/ui/src/app/components/json-form.directive.js @@ -83,6 +83,7 @@ function JsonForm($compile, $templateCache, $mdColorPicker) { val = undefined; } selectOrSet(key, scope.model, val); + scope.formProps.model = scope.model; }, onColorClick: function(event, key, val) { scope.showColorPicker(event, val); diff --git a/ui/src/app/components/react/json-form-rc-select.jsx b/ui/src/app/components/react/json-form-rc-select.jsx index 4efea8422..c0c634244 100644 --- a/ui/src/app/components/react/json-form-rc-select.jsx +++ b/ui/src/app/components/react/json-form-rc-select.jsx @@ -92,7 +92,7 @@ class TempusRcSelect extends React.Component { } return ( -
+