tbouron commented on a change in pull request #164: auto-set a name for the app 
in quick-launch, and
URL: https://github.com/apache/brooklyn-ui/pull/164#discussion_r366849931
 
 

 ##########
 File path: ui-modules/home/app/views/main/deploy/deploy.controller.js
 ##########
 @@ -80,9 +79,17 @@ export function deployStateController($scope, $state, 
$stateParams, $uibModal, b
 
     function modalController($scope, $location, entitySpec, locations) {
         $scope.app = entitySpec;
-        $scope.locations = locations;
-        // can optionally add: { noEditButton: true, noComposerButton: true }, 
or pass in URL
-        $scope.args = angular.extend({}, $location.search());
+        $scope.locations = filterCatalogQuickLaunch(locations, (t) => {
+                $scope.usingCatalogQuickLaunchTags = t.length > 0;
+            });
+        
+        // also supports { noEditButton: true, noComposerButton: true }
+        // see quick-launch.js for more info
+        $scope.args = angular.extend({
+                noCreateLocationLink: $scope.usingCatalogQuickLaunchTags
 
 Review comment:
   Ah got it. Would be good to make it explicitly configurable but we can live 
with it for now.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to