Added a chore start date option (closes #1612)

This commit is contained in:
Bernd Bestel
2022-02-08 20:35:47 +01:00
parent 411dbabc90
commit 61a1b1428a
7 changed files with 132 additions and 1 deletions

View File

@@ -5,6 +5,11 @@ Grocy.Components.ChoreCard.Refresh = function(choreId)
Grocy.Api.Get('chores/' + choreId,
function(choreDetails)
{
if (choreDetails.last_done_by == null)
{
choreDetails.last_done_by = {};
}
$('#chorecard-chore-name').text(choreDetails.chore.name);
$('#chorecard-chore-description').html(nl2br(choreDetails.chore.description));
$('#chorecard-chore-last-tracked').text((choreDetails.last_tracked || __t('never')));