diff --git a/SPECIFICATION.md b/SPECIFICATION.md index 3d2c570..fb2533d 100644 --- a/SPECIFICATION.md +++ b/SPECIFICATION.md @@ -1084,8 +1084,8 @@ days; a country does not get its regions' days. Everyone can read the list. The page opens on the viewer's own days (their code, its country and `*`) when they have a region code, and says which those are; without one it -links to the profile to set it. HR, who keep the list for every region, open on all -regions with the rule itself. Days already past in the shown year are muted. +links to the profile to set it. HR, who keep the list for every region, open on their own +days as well when they have a code, and on all regions with the rule itself without one. Days already past in the shown year are muted. HR always edits the list, and HR or an admin can let every employee (§2.2) add, edit and delete single holidays, so HR does not become a bottleneck. That switch lives in the *Public holidays* section of the Settings page (§12); the *Public diff --git a/src/views/HolidaysView.vue b/src/views/HolidaysView.vue index c5b7fdc..c256aa3 100644 --- a/src/views/HolidaysView.vue +++ b/src/views/HolidaysView.vue @@ -322,8 +322,8 @@ const mine = computed(() => (ownCode.value ? { id: 'mine', label: t('absence', 'Your holidays ({code})', { code: ownCode.value }), code: ownCode.value, mine: true } : null)) -// HR keeps the list for every region; everyone else opens on their own days -const region = shallowRef((!session.value.isHr && mine.value) || all) +// Opens on one's own days when a region is set, HR included: "All regions" is one pick away +const region = shallowRef(mine.value ?? all) const form = ref(null) const saving = ref(false) // The holiday whose deletion waits for a confirmation