You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by GitBox <gi...@apache.org> on 2021/09/15 13:12:53 UTC

[GitHub] [brooklyn-ui] jathanasiou commented on a change in pull request #288: ensuring that tosca post processors are not applied if type is camp

jathanasiou commented on a change in pull request #288:
URL: https://github.com/apache/brooklyn-ui/pull/288#discussion_r709172203



##########
File path: ui-modules/utils/quick-launch/quick-launch.js
##########
@@ -150,8 +150,8 @@ export function quickLaunchDirective() {
 
         function deployApp() {
             $scope.deploying = true;
-
-            Promise.resolve(quickLaunch.buildYaml())
+            let useExtensions = $scope.app.plan.format.includes('camp') ? false : true;
+            Promise.resolve(quickLaunch.buildYaml(useExtensions))

Review comment:
       `includes` returns boolean so much less redundant to simply do:
   
   Promise.resolve(quickLaunch.buildYaml(!$scope.app.plan.format.includes('camp')))
   
   Pretty good otherwise




-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@brooklyn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org