Skip to content

Commit

Permalink
fix: default reminder ui bug
Browse files Browse the repository at this point in the history
Signed-off-by: abdou6666 <sfayhi.abderrahmen@esprit.tn>
  • Loading branch information
abdou6666 committed Aug 21, 2024
1 parent 68ebb12 commit def95a6
Showing 1 changed file with 5 additions and 4 deletions.
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 @@ export default {
},
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 @@ export default {
</script>

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

0 comments on commit def95a6

Please sign in to comment.