Browse Source

AMBARI-3955. "Default" config group should be "<Service-name> Default" (Denis Buzhor via alexantonenko)

Alex Antonenko 11 năm trước cách đây
mục cha
commit
da16636dda
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      ambari-web/app/models/config_group.js

+ 4 - 1
ambari-web/app/models/config_group.js

@@ -85,7 +85,10 @@ App.ConfigGroup = Ember.Object.extend({
     var name = this.get('name');
     if (name && name == "Default") {
       if (this.get('serviceName')) {
-        name = this.get('serviceName') + " Default";
+        name = App.Service.DisplayNames[this.get('serviceName').toUpperCase()] + " Default";
+      }
+      if (this.get('service')) {
+        name = App.Service.DisplayNames[this.get('service.id')] + " Default";
       }
     }
     if (name && name.length>App.config.CONFIG_GROUP_NAME_MAX_LENGTH) {