You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2023/01/25 14:35:54 UTC
[brooklyn-ui] 01/03: fix for missing version in 'View in Catalog' link
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 <ja...@users.noreply.github.com>
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}`;
}
};