feat: add task management features to calendar
This commit is contained in:
@@ -19,6 +19,8 @@ export function CalendarSettings() {
|
||||
calendarNotificationsEnabled,
|
||||
calendarNotificationSound,
|
||||
calendarInvitationParsingEnabled,
|
||||
enableCalendarTasks,
|
||||
showTasksOnCalendar,
|
||||
updateSetting,
|
||||
} = useSettingsStore();
|
||||
|
||||
@@ -79,6 +81,28 @@ export function CalendarSettings() {
|
||||
/>
|
||||
</SettingItem>
|
||||
|
||||
<SettingItem
|
||||
label={t('enable_tasks')}
|
||||
description={t('enable_tasks_desc')}
|
||||
>
|
||||
<ToggleSwitch
|
||||
checked={enableCalendarTasks}
|
||||
onChange={(checked) => updateSetting('enableCalendarTasks', checked)}
|
||||
/>
|
||||
</SettingItem>
|
||||
|
||||
{enableCalendarTasks && (
|
||||
<SettingItem
|
||||
label={t('show_tasks_on_calendar')}
|
||||
description={t('show_tasks_on_calendar_desc')}
|
||||
>
|
||||
<ToggleSwitch
|
||||
checked={showTasksOnCalendar}
|
||||
onChange={(checked) => updateSetting('showTasksOnCalendar', checked)}
|
||||
/>
|
||||
</SettingItem>
|
||||
)}
|
||||
|
||||
<SettingItem
|
||||
label={t('notifications_enabled')}
|
||||
description={t('notifications_enabled_desc')}
|
||||
|
||||
Reference in New Issue
Block a user