mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-21 02:20:12 +00:00
feat(dueDate): don't show today schedule button if on today list
This commit is contained in:
parent
55ea5a3b91
commit
b8f53a8324
2 changed files with 5 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue