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 5b11de4bc0d05e9555d81c358d14f62a82667729 Author: Alex Heneveld <alex.henev...@cloudsoftcorp.com> AuthorDate: Thu Aug 5 16:07:24 2021 +0100 fix the "Add ''" button under Configuration which occurs if you e.g. add a parameter on an empty blueprint note you may also need to "clear filters" in the configuration section in order to see parameters, because there is no way to suggest/pin a parameter in the ui at present (so it is excluded by the default filters). --- .../app/components/spec-editor/spec-editor.template.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.template.html b/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.template.html index 55a4b69..8c88e5b 100644 --- a/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.template.html +++ b/ui-modules/blueprint-composer/app/components/spec-editor/spec-editor.template.html @@ -323,7 +323,7 @@ <div ng-if="model.miscData.get('config').length === 0"> <h4>No configuration</h4> <p class="buttons"> - <button class="btn btn-sm btn-success" ng-click="specEditor.addConfigKey(state.config.search)" ng-if="state.config.search"> + <button class="btn btn-sm btn-success" ng-click="specEditor.addConfigKey(state.config.search)" ng-if="state.config.search && state.config.search!=''"> <i class="fa fa-plus"></i> Add '{{state.config.search}}' </button> </p> @@ -332,7 +332,7 @@ <h4>No matching configuration</h4> <p class="buttons"> <button class="btn btn-sm btn-default" ng-if="state.config.search.length > 0" ng-click="state.config.search = ''">Clear search</button> - <button class="btn btn-sm btn-default" ng-click="specEditor.addConfigKey(state.config.search)" ng-if="!specEditor.getConfig(state.config.search)"> + <button class="btn btn-sm btn-default" ng-click="specEditor.addConfigKey(state.config.search)" ng-if="state.config.search && state.config.search!='' && !specEditor.getConfig(state.config.search)"> <i class="fa fa-plus"></i> Add '{{state.config.search}}' </button> <button class="btn btn-sm btn-success" ng-if="!state.config.filter.values.all" ng-click="state.config.filter.values.all = true">