#157 - added the request class and improved the request parameters

This commit is contained in:
2022-06-06 11:05:47 +02:00
parent d4c5e55409
commit 04d036a1ef
5 changed files with 48 additions and 14 deletions

View File

@@ -173,6 +173,6 @@ function unsetActiveDay() {
}
function linkParameters(user, day) {
return props.can.createOnBehalfOfEmployee ? { user: user.id, start_date: day.date } : { start_date: day.date }
return props.can.createOnBehalfOfEmployee ? { user: user.id, from_date: day.date } : { from_date: day.date }
}
</script>