mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Added a new stock settings to always show all products on /stockoverview (closes #2398)
This commit is contained in:
@@ -318,6 +318,7 @@ RefreshContextualTimeago = function(rootSelector = "#page-content")
|
||||
}
|
||||
|
||||
var isNever = timestamp && timestamp.substring(0, 10) == "2999-12-31";
|
||||
var isUnknown = timestamp && timestamp.substring(0, 10) == "2888-12-31";
|
||||
var isToday = timestamp && timestamp.substring(0, 10) == moment().format("YYYY-MM-DD");
|
||||
var isDateWithoutTime = element.hasClass("timeago-date-only");
|
||||
|
||||
@@ -326,6 +327,11 @@ RefreshContextualTimeago = function(rootSelector = "#page-content")
|
||||
element.prev().text(__t("Never"));
|
||||
element.text("");
|
||||
}
|
||||
else if (isUnknown)
|
||||
{
|
||||
element.prev().text(__t("Unknown"));
|
||||
element.text("");
|
||||
}
|
||||
else if (isToday)
|
||||
{
|
||||
element.text(__t("Today"));
|
||||
|
Reference in New Issue
Block a user