This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit 2fc06e9882037fe06a224af0ce9bc4e12c8af3b7 Author: Alex Heneveld <a...@cloudsoft.io> AuthorDate: Thu Mar 21 16:41:52 2024 +0000 effector params which are objects should render as yaml (backend will coerce from yaml) --- .../app/views/main/inspect/effectors/effectors.controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui-modules/app-inspector/app/views/main/inspect/effectors/effectors.controller.js b/ui-modules/app-inspector/app/views/main/inspect/effectors/effectors.controller.js index 10f8f2f9..61123e8c 100644 --- a/ui-modules/app-inspector/app/views/main/inspect/effectors/effectors.controller.js +++ b/ui-modules/app-inspector/app/views/main/inspect/effectors/effectors.controller.js @@ -18,6 +18,7 @@ */ import {HIDE_INTERSTITIAL_SPINNER_EVENT} from 'brooklyn-ui-utils/interstitial-spinner/interstitial-spinner'; import template from "./effectors.template.html"; +import jsyaml from 'js-yaml'; function EffectorsController($scope, $stateParams, $location, entityApi) { $scope.$emit(HIDE_INTERSTITIAL_SPINNER_EVENT); @@ -49,7 +50,11 @@ function EffectorsController($scope, $stateParams, $location, entityApi) { const effectorHint = (entityTags || []).map(t => t['ui-effector-hints']).find(t => t); vm.effectors = response.data.map(function (effector) { effector.parameters.map(function (parameter) { + // populate this for invocation parameter.value = parameter.defaultValue; + if (parameter.value!=null && typeof parameter.value === 'object') { + parameter.value = jsyaml.dump(parameter.value).trim(); + } return parameter; }); return effector;