feat(dueDate): don't show today schedule button if on today list

This commit is contained in:
Johannes Millan 2025-05-03 12:56:11 +02:00
parent 55ea5a3b91
commit b8f53a8324
2 changed files with 5 additions and 1 deletions

View file

@ -247,7 +247,7 @@
[innerHTML]="t.dueWithTime | shortPlannedAt"
></div>
</button>
} @else if (t.dueDay) {
} @else if (t.dueDay && isShowDueToday()) {
<button
(click)="scheduleTask()"
[title]="T.F.TASK.CMP.EDIT_SCHEDULED | translate"

View file

@ -172,6 +172,10 @@ export class TaskComponent implements OnDestroy, AfterViewInit {
);
});
isShowDueToday = computed(() => {
return !this.isOnTodayList() || !environment.production;
});
progress = computed<number>(() => {
const t = this.task();
return (t.timeEstimate && (t.timeSpent / t.timeEstimate) * 100) || 0;