Sfoglia il codice sorgente

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

Oleg Nechiporenko 11 anni fa
parent
commit
a303eafa19
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      ambari-web/app/controllers/wizard/step7_controller.js

+ 9 - 0
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);
+        }
+      });
+    });
   },
 
    /**