feat(settings): surface quick add default reminders in user settings

Adds the settings field next to the quick add magic mode select, hidden
when that mode is set to Disabled. Uses Reminders.vue directly with
allow-absolute=false and default-relative-to pinned to due date.
This commit is contained in:
kolaente 2026-04-11 23:41:35 +02:00 committed by kolaente
parent 6c9753328b
commit 338d4d8b76
1 changed files with 19 additions and 0 deletions

View File

@ -288,6 +288,23 @@
</div>
</label>
</div>
<div
v-if="settings.frontendSettings.quickAddMagicMode !== PrefixMode.Disabled"
class="field"
>
<label class="label">{{ $t('user.settings.general.quickAddDefaultReminders') }}</label>
<p class="help">
{{ $t('user.settings.general.quickAddDefaultRemindersDescription') }}
</p>
<p class="help">
{{ $t('user.settings.general.quickAddDefaultRemindersHint') }}
</p>
<Reminders
v-model="settings.frontendSettings.quickAddDefaultReminders"
:default-relative-to="REMINDER_PERIOD_RELATIVE_TO_TYPES.DUEDATE"
:allow-absolute="false"
/>
</div>
<div class="field">
<label class="two-col">
<span>
@ -447,6 +464,8 @@ import {TIME_FORMAT} from '@/constants/timeFormat'
import {RELATION_KINDS} from '@/types/IRelationKind'
import {isDesktopApp} from '@/helpers/desktopAuth'
import ShortcutRecorder from '@/components/misc/ShortcutRecorder.vue'
import Reminders from '@/components/tasks/partials/Reminders.vue'
import {REMINDER_PERIOD_RELATIVE_TO_TYPES} from '@/types/IReminderPeriodRelativeTo'
defineOptions({name: 'UserSettingsGeneral'})