FIX: tx list resolution increased to minutes

This commit is contained in:
Overtorment 2018-09-27 20:19:14 +01:00
parent a036d67860
commit 3ed4eef735
7 changed files with 10 additions and 1 deletions

View File

@ -6,6 +6,7 @@ module.exports = {
months_ago: 'months ago',
days_ago: 'days ago',
hours_ago: 'hours ago',
minutes_ago: 'minutes ago',
never: 'never',
},
wallets: {

View File

@ -6,6 +6,7 @@ module.exports = {
months_ago: 'months ago',
days_ago: 'days ago',
hours_ago: 'hours ago',
minutes_ago: 'minutes ago',
never: 'never',
},
wallets: {

View File

@ -50,9 +50,12 @@ strings.transactionTimeToReadable = function(time) {
} else if (ago / (3600 * 24) >= 1) {
ago = Math.round(ago / (3600 * 24));
return ago + ' ' + strings._.days_ago;
} else {
} else if (ago > 3600) {
ago = Math.round(ago / 3600);
return ago + ' ' + strings._.hours_ago;
} else {
ago = Math.round(ago / 60);
return ago + ' ' + strings._.minutes_ago;
}
};

View File

@ -6,6 +6,7 @@ module.exports = {
months_ago: 'months ago',
days_ago: 'days ago',
hours_ago: 'hours ago',
minutes_ago: 'minutes ago',
never: 'never',
},
wallets: {

View File

@ -6,6 +6,7 @@ module.exports = {
months_ago: 'months ago',
days_ago: 'days ago',
hours_ago: 'hours ago',
minutes_ago: 'minutes ago',
never: 'never',
},
wallets: {

View File

@ -6,6 +6,7 @@ module.exports = {
months_ago: 'месяцев назад',
days_ago: 'дней назад',
hours_ago: 'часов назад',
minutes_ago: 'минут назад',
never: 'никогда',
},
wallets: {

View File

@ -6,6 +6,7 @@ module.exports = {
months_ago: 'months ago',
days_ago: 'days ago',
hours_ago: 'hours ago',
minutes_ago: 'minutes ago',
never: 'never',
},
wallets: {