瀏覽代碼

Revert "AMBARI-8719 Repo distribution progress: task "Install Packages Actionexecute" should just say "Install Packages". (ababiichuk)"
Unit test failure introduced.
This reverts commit 2ccfa617a92a77582835d0cedffdb2853f25b41f.

Yusaku Sako 10 年之前
父節點
當前提交
7691aa4a5b
共有 3 個文件被更改,包括 0 次插入8 次删除
  1. 0 1
      ambari-web/app/messages.js
  2. 0 3
      ambari-web/app/utils/helper.js
  3. 0 4
      ambari-web/test/utils/helper_test.js

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

@@ -221,7 +221,6 @@ Em.I18n.translations = {
   'common.hostLog.popup.outputLog.value': 'output-{0}.txt',
   'common.hostLog.popup.errorLog.value': 'errors-{0}.txt',
   'common.maintenance.task': ' Toggle Maintenance Mode',
-  'common.installRepo.task': ' Install Packages',
   'common.used': 'used',
   'common.free': 'free',
   'common.type.string': 'string',

+ 0 - 3
ambari-web/app/utils/helper.js

@@ -485,9 +485,6 @@ App.format = {
     if (result === ' Nagios Update Ignore Actionexecute') {
        result = Em.I18n.t('common.maintenance.task');
     }
-    if (result === ' Install Packages Actionexecute') {
-      result = Em.I18n.t('common.installRepo.task');
-    }
     if (result === ' Rebalancehdfs NameNode') {
        result = Em.I18n.t('services.service.actions.run.rebalanceHdfsNodes.title');
     }

+ 0 - 4
ambari-web/test/utils/helper_test.js

@@ -179,7 +179,6 @@ describe('utils/helper', function() {
         var ignored = "DECOMMISSION, NAMENODE";
         var removeString = "SERVICE/HDFS STOP";
         var nagiosState = "nagios_update_ignore ACTIONEXECUTE";
-        var installPepo = ' Install Packages Actionexecute';
         it('should convert command to readable info', function() {
           expect(App.format.commandDetail(command)).to.eql(' Ganglia Monitor Stop');
         });
@@ -192,9 +191,6 @@ describe('utils/helper', function() {
         it('should return maintenance message', function() {
           expect(App.format.commandDetail(nagiosState)).to.eql(' Toggle Maintenance Mode');
         });
-        it('should return install repo message', function() {
-          expect(App.format.commandDetail(installPepo)).to.eql(Em.I18n.t('common.installRepo.task'));
-        });
       });
       describe('#taskStatus()', function(){
         var testable = [