You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2013/08/06 16:05:37 UTC

git commit: AMBARI-2816. Customize Services: directories are shown in comma-delimited format when revisiting. (onechiporenko)

Updated Branches:
  refs/heads/trunk 80a8850ca -> a303eafa1


AMBARI-2816. Customize Services: directories are shown in comma-delimited format when revisiting. (onechiporenko)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/a303eafa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/a303eafa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/a303eafa

Branch: refs/heads/trunk
Commit: a303eafa1944ac8bfc8048ca38531706b385cdde
Parents: 80a8850
Author: Oleg Nechiporenko <cv...@yahoo.com>
Authored: Tue Aug 6 17:02:56 2013 +0300
Committer: Oleg Nechiporenko <cv...@yahoo.com>
Committed: Tue Aug 6 17:02:56 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/wizard/step7_controller.js | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/a303eafa/ambari-web/app/controllers/wizard/step7_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step7_controller.js b/ambari-web/app/controllers/wizard/step7_controller.js
index a305b97..5f5e5c2 100644
--- a/ambari-web/app/controllers/wizard/step7_controller.js
+++ b/ambari-web/app/controllers/wizard/step7_controller.js
@@ -93,6 +93,15 @@ App.WizardStep7Controller = Em.Controller.extend({
     this.set('stepConfigs', serviceConfigs);
     this.activateSpecialConfigs();
     this.set('selectedService', this.get('stepConfigs').filterProperty('showConfig', true).objectAt(0));
+    this.get('stepConfigs').forEach(function(stepConfig) {
+      stepConfig.get('configs').forEach(function(config) {
+        var displayType = config.get('displayType');
+        if (displayType == 'directory' || displayType == 'directories') {
+          var value = config.get('value').replace(/,/g, "\n");
+          config.set('value', value);
+        }
+      });
+    });
   },
 
    /**