Plantafel-Modal für Profile ohne Benutzerzuordnung absichern

This commit is contained in:
2026-04-29 16:19:03 +02:00
parent cfc5efb556
commit d5aed2140e

View File

@@ -596,11 +596,17 @@ async function openProfileDetails(profileId) {
selectedProfile.value = profile selectedProfile.value = profile
selectedProfileVacationSummary.value = null selectedProfileVacationSummary.value = null
isProfileDetailsModalOpen.value = true isProfileDetailsModalOpen.value = true
loadingProfileVacation.value = true
const requestId = profileVacationRequestId.value + 1 const requestId = profileVacationRequestId.value + 1
profileVacationRequestId.value = requestId profileVacationRequestId.value = requestId
if (!profile.user_id) {
loadingProfileVacation.value = false
return
}
loadingProfileVacation.value = true
try { try {
const from = `${currentVacationYear.value}-01-01` const from = `${currentVacationYear.value}-01-01`
const to = `${currentVacationYear.value}-12-31` const to = `${currentVacationYear.value}-12-31`