Parcourir la source

AMBARI-5045. Temporarily wrong location of progress bar. (xiwang via yusaku)

Yusaku Sako il y a 11 ans
Parent
commit
81b8e8fe4a
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 1 0
      ambari-web/app/messages.js
  2. 2 1
      ambari-web/app/utils/date.js

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

@@ -150,6 +150,7 @@ Em.I18n.translations = {
   'common.userSettings': 'User Settings',
   'common.aboutAmbari': 'About',
   'common.notAvailable': 'Not Available',
+  'common.na': 'n/a',
   'common.operations': 'Operations',
   'common.startTime': 'Start Time',
   'common.duration': 'Duration',

+ 2 - 1
ambari-web/app/utils/date.js

@@ -91,7 +91,8 @@ module.exports = {
     var endDate = new Date(endTimestamp);
     var self = this;
     if (startDate.getFullYear() == 1969 || startTimestamp < 1) {
-      return '';
+      // not started
+      return Em.I18n.t('common.na');
     }
     if (endDate.getFullYear() != 1969 && endTimestamp > 0) {
       return '' + this.timingFormat(endTimestamp - startTimestamp, 1); //lasted for xx secs