This is an automated email from the ASF dual-hosted git repository. iuliana pushed a commit to branch fix/smart-164 in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit f9652f2ea9c6984b533dbcc58ccd2c736177ba1e Author: iuliana <[email protected]> AuthorDate: Fri Jun 4 12:23:02 2021 +0100 Added code to initialize the version properly for templates other than camp --- .../app/components/catalog-saver/catalog-saver.directive.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.directive.js b/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.directive.js index 705e085..d9fe0e2 100644 --- a/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.directive.js +++ b/ui-modules/blueprint-composer/app/components/catalog-saver/catalog-saver.directive.js @@ -100,6 +100,9 @@ export function saveToCatalogModalDirective($rootScope, $uibModal, $injector, $f if (!$scope.config.version && (entity.hasVersion() || metadata.has('version'))) { $scope.config.version = entity.version || metadata.get('version'); } + if(metadata && metadata.has("extra.tosca.metadata")){ + $scope.config.version = metadata.get("extra.tosca.metadata").metadata.template_version; + } if (!$scope.config.bundle) { if ($scope.config.symbolicName) { $scope.config.bundle = $scope.config.symbolicName;
