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 01282ffad5638053d8768ff00f9d03f764da3a82 Author: John Athanasiou <[email protected]> AuthorDate: Tue Jan 17 11:05:38 2023 +0000 fix for missing version in 'View in Catalog' link --- .../app/components/catalog-saver/catalog-saver.directive.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 8575d988..4d01c15f 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 @@ -208,12 +208,14 @@ export function CatalogItemModalController($scope, $filter, blueprintService, pa }; $scope.getCatalogURL = () => { + const urlPartVersion = $scope.config.current.version || $scope.config.version; + switch ($scope.state.view) { case VIEWS.form: return ''; case VIEWS.saved: // TODO where do these come from - return `/brooklyn-ui-catalog/#!/bundles/${$scope.config.catalogBundleId}/${$scope.config.version}/types/${$scope.config.catalogBundleSymbolicName}/${$scope.config.version}`; + return `/brooklyn-ui-catalog/#!/bundles/${$scope.config.catalogBundleId}/${urlPartVersion}/types/${$scope.config.catalogBundleSymbolicName}/${urlPartVersion}`; } };
