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 2021/09/06 13:24:07 UTC

[brooklyn-ui] 01/05: refreshing blueprint to prevent display glitches

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 17c65ca0a2c3b8c7d274fea211a4e70a8109fb89
Author: John Athanasiou <ja...@users.noreply.github.com>
AuthorDate: Mon Sep 6 14:08:26 2021 +0100

    refreshing blueprint to prevent display glitches
---
 .../app/components/providers/blueprint-service.provider.js              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js b/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
index c4325e2..b6e72c8 100644
--- a/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
+++ b/ui-modules/blueprint-composer/app/components/providers/blueprint-service.provider.js
@@ -162,7 +162,7 @@ function BlueprintService($log, $q, $sce, paletteApi, iconGenerator, dslService,
         }
         setBlueprintFromJson(newBlueprint);
         $log.debug(TAG + 'Blueprint set from YAML', blueprint);
-        // do we need to refresh the blueprint now?  see comments in yaml.state.js and on refreshBlueprint; think not.
+        refreshBlueprintMetadata(); // needed to prevent graph child nodes from disappearing when the "Add to catalog" modal is opened
     }
 
     function getBlueprint() {