Explorar el Código

AMBARI-2027. Add validation checks for Add Property on custom site configs. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1476473 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako hace 12 años
padre
commit
a6df407f75
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ambari-web/app/views/common/configs/services_config.js

+ 1 - 1
ambari-web/app/views/common/configs/services_config.js

@@ -211,7 +211,6 @@ App.ServiceConfigsByCategoryView = Ember.View.extend({
         }
       }.observes("name")
     });
-    serviceConfigObj.observeAddPropertyValue();
 
     var category = this.get('category');
     serviceConfigObj.displayType = "advanced";
@@ -233,6 +232,7 @@ App.ServiceConfigsByCategoryView = Ember.View.extend({
       primary: 'Add',
       secondary: 'Cancel',
       onPrimary: function () {
+        serviceConfigObj.observeAddPropertyValue();
         /**
          * For the first entrance use this if (serviceConfigObj.name.trim() != "")
          */