瀏覽代碼

AMBARI-5075. Receiving incorrect confirmation prompt when trying to add components. (xiwang via yusaku)

Yusaku Sako 11 年之前
父節點
當前提交
82c0cfb2fb
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      ambari-web/app/controllers/main/host/details.js
  2. 1 0
      ambari-web/app/messages.js

+ 1 - 1
ambari-web/app/controllers/main/host/details.js

@@ -626,7 +626,7 @@ App.MainHostDetailsController = Em.Controller.extend({
     var displayName = component.get('displayName');
 
     App.ModalPopup.show({
-      primary: Em.I18n.t('hosts.host.addComponent.popup.confirm'),
+      primary: Em.I18n.t('hosts.host.installComponent.popup.confirm'),
       header: Em.I18n.t('popup.confirmation.commonHeader'),
       installComponentMessage: function(){
         return Em.I18n.t('hosts.host.installComponent.msg').format(displayName);

+ 1 - 0
ambari-web/app/messages.js

@@ -1485,6 +1485,7 @@ Em.I18n.translations = {
   'hosts.host.deleteComponent.popup.msg2':'<b>Important:</b> After this <i>{0}</i> is deleted, go to <i>Services -> Nagios</i> to restart the Nagios service.  This is required for the alerts and notifications to work properly.',
   'hosts.host.deleteComponent.popup.warning':'<b>WARNING!</b> Delete the last <i>{0}</i> component in the cluster?</br>Deleting the last component in the cluster could result in permanent loss of service data.',
   'hosts.host.deleteComponent.popup.confirm':'Confirm Delete',
+  'hosts.host.installComponent.popup.confirm':'Confirm Install',
   'hosts.host.installComponent.msg':'Are you sure you want to install {0}?',
   'hosts.host.addComponent.msg':'Are you sure you want to add {0}?',
   'hosts.host.addComponent.addZooKeeper':'Adding ZooKeeper Server may reconfigure such properties:<ul><li>ha.zookeeper.quorum</li><li>hbase.zookeeper.quorum</li><li>templeton.zookeeper.hosts</li></ul>',