Remove debug logging from SickController and useModal for cleaner code
This commit is contained in:
@@ -46,8 +46,6 @@ class SickController {
|
|||||||
const userId = req.user?.id || 1;
|
const userId = req.user?.id || 1;
|
||||||
const { sickTypeId, startDate, endDate } = req.body;
|
const { sickTypeId, startDate, endDate } = req.body;
|
||||||
|
|
||||||
console.log('DEBUG createSickEntry:', { sickTypeId, startDate, endDate, body: req.body });
|
|
||||||
|
|
||||||
if (!sickTypeId || !startDate) {
|
if (!sickTypeId || !startDate) {
|
||||||
return res.status(400).json({
|
return res.status(400).json({
|
||||||
message: 'Krankheitstyp und Startdatum sind erforderlich'
|
message: 'Krankheitstyp und Startdatum sind erforderlich'
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ export function useModal() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const confirm = (message, title = 'Bestätigung') => {
|
const confirm = (message, title = 'Bestätigung') => {
|
||||||
console.log('DEBUG useModal.confirm called:', { message, title })
|
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
modalConfig.value = {
|
modalConfig.value = {
|
||||||
title,
|
title,
|
||||||
@@ -35,9 +34,7 @@ export function useModal() {
|
|||||||
confirmText: 'Ja',
|
confirmText: 'Ja',
|
||||||
cancelText: 'Abbrechen'
|
cancelText: 'Abbrechen'
|
||||||
}
|
}
|
||||||
console.log('DEBUG useModal: setting showModal to true')
|
|
||||||
showModal.value = true
|
showModal.value = true
|
||||||
console.log('DEBUG useModal: showModal.value =', showModal.value)
|
|
||||||
resolvePromise.value = resolve
|
resolvePromise.value = resolve
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user