Added a button to jump to the journal on the product/chore/battery card

This commit is contained in:
Bernd Bestel
2019-09-27 14:19:06 +02:00
parent 9ba4585143
commit 81f6b58fe4
7 changed files with 16 additions and 0 deletions

View File

@@ -12,7 +12,9 @@ Grocy.Components.ChoreCard.Refresh = function(choreId)
$('#chorecard-chore-last-done-by').text((choreDetails.last_done_by.display_name || __t('Unknown')));
$('#chorecard-chore-edit-button').attr("href", U("/chore/" + choreDetails.chore.id.toString()));
$('#chorecard-chore-journal-button').attr("href", U("/choresjournal?chore=" + choreDetails.chore.id.toString()));
$('#chorecard-chore-edit-button').removeClass("disabled");
$('#chorecard-chore-journal-button').removeClass("disabled");
if (choreDetails.chore.track_date_only == 1)
{