Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions SPECIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/views/HolidaysView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ const mine = computed<RegionOption | null>(() => (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<RegionOption>((!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<RegionOption>(mine.value ?? all)
const form = ref<HolidayForm | null>(null)
const saving = ref(false)
// The holiday whose deletion waits for a confirmation
Expand Down
Loading