mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Replace Timeago with momentjs (#1687)
* Replaced timeago with moment.fromNow * Fixed datetime when best_before_date is empty * Removed the now unnecessary timeago package * Removed not longer localization strings * Check for empty instead of string comparison Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
@@ -110,8 +110,6 @@ Grocy.Components.ProductCard.Refresh = function(productId)
|
||||
$("#productcard-product-picture").addClass("d-none");
|
||||
}
|
||||
|
||||
EmptyElementWhenMatches('#productcard-product-last-purchased-timeago', __t('timeago_nan'));
|
||||
EmptyElementWhenMatches('#productcard-product-last-used-timeago', __t('timeago_nan'));
|
||||
RefreshContextualTimeago(".productcard");
|
||||
},
|
||||
function(xhr)
|
||||
|
Reference in New Issue
Block a user