ソースを参照

AMBARI-6761. 'Select Configuration Group Hosts' popup shows incomplete description template.(xiwang)

Xi Wang 11 年 前
コミット
abf09efdaf

+ 1 - 1
ambari-web/app/controllers/main/service/manage_config_groups_controller.js

@@ -274,7 +274,7 @@ App.ManageConfigGroupsController = Em.Controller.extend({
     var availableHosts = this.get('selectedConfigGroup.availableHosts');
     var popupDescription = {
       header: Em.I18n.t('hosts.selectHostsDialog.title'),
-      dialogMessage: Em.I18n.t('hosts.selectHostsDialog.message').format(this.get('displayName'))
+      dialogMessage: Em.I18n.t('hosts.selectHostsDialog.message').format(this.get('selectedConfigGroup.displayName'))
     };
     hostsManagement.launchHostsSelectionDialog(availableHosts, [], false, this.get('componentsForFilter'), this.addHostsCallback.bind(this), popupDescription);
   },

+ 2 - 2
ambari-web/app/messages.js

@@ -1593,10 +1593,10 @@ Em.I18n.translations = {
   'hosts.bulkOperation.host_components.passiveState.nothingToDo.body':'All host components that you selected are already in Maintenance Mode',
 
   'hosts.selectHostsDialog.title': 'Select Configuration Group Hosts',
-  'hosts.selectHostsDialog.message': 'Select hosts that should belong to this {0} Configuration Group.  All hosts belonging to this group will have the same set of {0} configurations.',
+  'hosts.selectHostsDialog.message': 'Select hosts that should belong to this {0} Configuration Group. All hosts belonging to this group will have the same set of configurations.',
   'hosts.selectHostsDialog.filter.placeHolder': 'Filter...',
   'hosts.selectHostsDialog.selectedHostsLink': '{0} out of {1} hosts selected',
-  'hosts.selectHostsDialog.message.warning': 'Atleast one host needs to be selected.',
+  'hosts.selectHostsDialog.message.warning': 'At least one host needs to be selected.',
 
   'hosts.host.serviceNotAvailable': 'Service not available on this host',
 

+ 1 - 1
ambari-web/app/utils/hosts.js

@@ -30,7 +30,7 @@ module.exports = {
    * or closed, <code>null</code> is provided to the callback. Else
    * an array (maybe empty) will be provided to the callback.
    * 
-   * @param availableHosts  {App.Host[]} List of hosts to pick from
+   * @param initialHosts  {App.Host[]} List of hosts to pick from
    * @param selectedHosts {App.Host[]} List of hosts already selected from the available hosts
    * @param selectAtleastOneHost  {boolean} If true atleast one host has to be selected
    * @param validComponents {App.HostComponent[]} List of host-component types to pick from.