mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 03:40:10 +00:00
Added a new "adaptive" chore period type (closes #1495)
This commit is contained in:
@@ -31,6 +31,15 @@ Grocy.Components.ChoreCard.Refresh = function(choreId)
|
||||
$("#chorecard-chore-last-tracked-timeago").removeClass("timeago-date-only");
|
||||
}
|
||||
|
||||
if (choreDetails.average_execution_frequency_hours == null)
|
||||
{
|
||||
$('#chorecard-average-execution-frequency').text(__t("Unknown"));
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#chorecard-average-execution-frequency').text(moment.duration(parseInt(choreDetails.average_execution_frequency_hours) / 24, "days").humanize());
|
||||
}
|
||||
|
||||
RefreshContextualTimeago(".chorecard");
|
||||
},
|
||||
function(xhr)
|
||||
|
Reference in New Issue
Block a user