Optimized tracking button handling on /choresoverview (closes #2186)

This commit is contained in:
Bernd Bestel
2023-03-31 20:12:06 +02:00
parent 3d01854fa1
commit 98469248eb
5 changed files with 21 additions and 8 deletions

View File

@@ -145,7 +145,7 @@
href="#"
data-toggle="tooltip"
data-placement="left"
title="{{ $__t('Track chore execution') }}"
title="{{ $__t('Track next chore schedule') }}"
data-chore-id="{{ $curentChoreEntry->chore_id }}"
data-chore-name="{{ FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->name }}">
<i class="fa-solid fa-play"></i>
@@ -166,7 +166,13 @@
<i class="fa-solid fa-ellipsis-v"></i>
</button>
<div class="table-inline-menu dropdown-menu dropdown-menu-right">
<a class="dropdown-item reschedule-chore-button"
<a class="dropdown-item track-chore-button now permission-CHORE_TRACK_EXECUTION"
data-chore-id="{{ $curentChoreEntry->chore_id }}"
type="button"
href="#">
<span>{{ $__t('Track chore execution now') }}</span>
</a>
<a class="dropdown-item reschedule-chore-button permission-CHORE_TRACK_EXECUTION"
data-chore-id="{{ $curentChoreEntry->chore_id }}"
type="button"
href="#">