Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: default reminder ui bug #6249

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/components/AppNavigation/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@
</template>
{{ $t('calendar', 'Copy iOS/macOS CalDAV address') }}
</ActionButton>
<ActionLink :href="availabilitySettingsUrl"
target="_blank">
<ActionLink :href="availabilitySettingsUrl" target="_blank">
<template #icon>
<OpenInNewIcon :size="20" decorative />
</template>
Expand Down Expand Up @@ -256,8 +255,9 @@
},
defaultReminderOptions() {
const defaultAlarms = getDefaultAlarms().map(seconds => {
const label = seconds === 0 ? t('calendar', 'At event start') : moment.duration(Math.abs(seconds) * 1000).locale(this.locale).humanize()
return {
label: moment.duration(Math.abs(seconds) * 1000).locale(this.locale).humanize(),
label,

Check warning on line 260 in src/components/AppNavigation/Settings.vue

View check run for this annotation

Codecov / codecov/patch

src/components/AppNavigation/Settings.vue#L260

Added line #L260 was not covered by tests
value: seconds.toString(),
}
})
Expand Down Expand Up @@ -503,7 +503,8 @@
</script>

<style scoped>
.settings-fieldset-interior-item, :deep(.v-select.select) {
.settings-fieldset-interior-item,
:deep(.v-select.select) {
width: 100%;
}
</style>
Loading