Repository: brooklyn-ui
Updated Branches:
  refs/heads/master 6ecfb16d1 -> b2ec9d10b


Show config values when jumping from App Wizard to YAML Preview


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/14ae0227
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/14ae0227
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/14ae0227

Branch: refs/heads/master
Commit: 14ae02270bc76ef74818a424763e227f380bdaf3
Parents: 6ecfb16
Author: Valentin Aitken <bos...@gmail.com>
Authored: Tue May 24 14:54:45 2016 +0300
Committer: Valentin Aitken <bos...@gmail.com>
Committed: Wed May 25 12:37:42 2016 +0300

----------------------------------------------------------------------
 src/main/webapp/assets/js/view/application-add-wizard.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/14ae0227/src/main/webapp/assets/js/view/application-add-wizard.js
----------------------------------------------------------------------
diff --git a/src/main/webapp/assets/js/view/application-add-wizard.js 
b/src/main/webapp/assets/js/view/application-add-wizard.js
index e38f6b4..1e1b595 100644
--- a/src/main/webapp/assets/js/view/application-add-wizard.js
+++ b/src/main/webapp/assets/js/view/application-add-wizard.js
@@ -303,6 +303,10 @@ define([
         },
         previewStep:function () {
             // no need for validation if going to composer
+
+            // When user jump to the YAML editor he also must have the config 
values that he set through the UI.
+            // The config is set implicitly when user clicks deploy and 
StepDeploy.validate is called.
+            this.currentView.model.spec.set("config", 
this.currentView.getConfigMap());
             if (this.currentStep==0) {
                 // from first step, composer should load yaml from the catalog 
item
                 if (this.currentView.selectedTemplate && 
this.currentView.selectedTemplate.id) {

Reply via email to