Skip to content

Commit f17cc7f

Browse files
committed
🎨 日历视图筛选分类,点击创建任务,默认填充对应分类
1 parent b7e8deb commit f17cc7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/CalendarView.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2284,12 +2284,13 @@ export class CalendarView {
22842284
}
22852285
}
22862286

2287-
// 创建快速提醒对话框,传递默认项目ID
2287+
// 创建快速提醒对话框,传递默认项目ID和默认分类ID
22882288
const quickDialog = new QuickReminderDialog(clickedDate, clickedTime, async () => {
22892289
// 刷新日历事件
22902290
await this.refreshEvents();
22912291
}, undefined, {
22922292
defaultProjectId: this.currentProjectFilter !== 'all' && this.currentProjectFilter !== 'none' ? this.currentProjectFilter : undefined,
2293+
defaultCategoryId: this.currentCategoryFilter !== 'all' && this.currentCategoryFilter !== 'none' ? this.currentCategoryFilter : undefined,
22932294
plugin: this.plugin // 传入plugin实例
22942295
});
22952296

@@ -2403,6 +2404,7 @@ export class CalendarView {
24032404
},
24042405
{
24052406
defaultProjectId: this.currentProjectFilter !== 'all' && this.currentProjectFilter !== 'none' ? this.currentProjectFilter : undefined,
2407+
defaultCategoryId: this.currentCategoryFilter !== 'all' && this.currentCategoryFilter !== 'none' ? this.currentCategoryFilter : undefined,
24062408
plugin: this.plugin // 传入plugin实例
24072409
}
24082410
);

0 commit comments

Comments
 (0)