mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix: only filter out later today tasks for today list
This commit is contained in:
parent
64cba1ffa4
commit
f9f1049437
3 changed files with 6 additions and 5 deletions
|
|
@ -372,7 +372,7 @@ export class WorkContextService {
|
|||
}
|
||||
|
||||
// Filter out tasks scheduled for later today
|
||||
if (task.dueWithTime) {
|
||||
if (this.activeWorkContextId === TODAY_TAG.id && task.dueWithTime) {
|
||||
const now = Date.now();
|
||||
const todayEnd = new Date();
|
||||
todayEnd.setHours(23, 59, 59, 999);
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@
|
|||
</button>
|
||||
</div>
|
||||
}
|
||||
@if (customizedUndoneTasks$ | async; as customized) {
|
||||
@if (customizedUndoneTasks(); as customized) {
|
||||
@if (customized.grouped) {
|
||||
@for (group of customized.grouped | keyvalue; track group.key) {
|
||||
<h3>{{ group.key }}</h3>
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ import { MsToStringPipe } from '../../ui/duration/ms-to-string.pipe';
|
|||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import {
|
||||
flattenTasks,
|
||||
selectOverdueTasksWithSubTasks,
|
||||
selectLaterTodayTasksWithSubTasks,
|
||||
selectOverdueTasksWithSubTasks,
|
||||
} from '../tasks/store/task.selectors';
|
||||
import { CollapsibleComponent } from '../../ui/collapsible/collapsible.component';
|
||||
import { SnackService } from '../../core/snack/snack.service';
|
||||
|
|
@ -120,8 +120,9 @@ export class WorkViewComponent implements OnInit, OnDestroy, AfterContentInit {
|
|||
initialValue: [],
|
||||
});
|
||||
undoneTasks = input<TaskWithSubTasks[]>([]);
|
||||
customizedUndoneTasks$ = this.customizerService.customizeUndoneTasks(
|
||||
this.workContextService.undoneTasks$,
|
||||
customizedUndoneTasks = toSignal(
|
||||
this.customizerService.customizeUndoneTasks(this.workContextService.undoneTasks$),
|
||||
{ initialValue: { list: [] } },
|
||||
);
|
||||
doneTasks = input<TaskWithSubTasks[]>([]);
|
||||
backlogTasks = input<TaskWithSubTasks[]>([]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue