feat: Edit relative reminders #3248

Merged
konrad merged 27 commits from ce72/frontend:main into main 2023-06-10 17:04:10 +00:00
Showing only changes of commit eac19e28d6 - Show all commits

View File

@ -98,7 +98,7 @@ watch(
const p = secondsToPeriod(value?.relativePeriod) const p = secondsToPeriod(value?.relativePeriod)

What does sign mean in this context?

What's the advantage of using an object here instead of individual refs?

What does `sign` mean in this context? What's the advantage of using an object here instead of individual `ref`s?
period.value.durationUnit = p.unit period.value.durationUnit = p.unit
period.value.duration = p.amount period.value.duration = p.amount
period.value.relativeTo = value?.relativeTo period.value.relativeTo = value?.relativeTo || REMINDER_PERIOD_RELATIVE_TO_TYPES.DUEDATE
}, },
{immediate: true}, {immediate: true},
) )
@ -117,6 +117,7 @@ function updateData() {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: .25rem; gap: .25rem;
padding: .5rem .5rem 0;
.input, .select select { .input, .select select {
width: 100% !important; width: 100% !important;