Quellcode durchsuchen

AMBARI-8719 Repo distribution progress: task "Install Packages Actionexecute" should just say "Install Packages". (ababiichuk)

ababiichuk vor 10 Jahren
Ursprung
Commit
2ccfa617a9

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

@@ -221,6 +221,7 @@ 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',

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

@@ -485,6 +485,9 @@ 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');
     }

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

@@ -179,6 +179,7 @@ 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');
         });
@@ -191,6 +192,9 @@ 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 = [