mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
typo fix in getDateStyleClass; fix selectAll button in Assistenz view; change the upload_allowed checkbox on change as expected; give fhcAlert primevue btn classes instead of bootstrap so they actually get applied; save convert js date to iso string to avoid timezone shenanigans; created zusatzdaten edit phrase;
This commit is contained in:
@@ -43,13 +43,23 @@ export default {
|
||||
};
|
||||
},
|
||||
postProjektarbeitAbgabe(termin) {
|
||||
|
||||
let dateString = termin.datum
|
||||
if(termin.datum instanceof Date) {
|
||||
const year = termin.datum.getFullYear();
|
||||
const month = String(termin.datum.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(termin.datum.getDate()).padStart(2, '0');
|
||||
|
||||
dateString = `${year}-${month}-${day}`
|
||||
}
|
||||
|
||||
return {
|
||||
method: 'post',
|
||||
url: '/api/frontend/v1/Abgabe/postProjektarbeitAbgabe',
|
||||
params: {
|
||||
paabgabe_id: termin.paabgabe_id,
|
||||
paabgabetyp_kurzbz: termin.bezeichnung.paabgabetyp_kurzbz,
|
||||
datum: termin.datum,
|
||||
datum: dateString,
|
||||
note: termin.note_pk,
|
||||
upload_allowed: !!termin.upload_allowed,
|
||||
beurteilungsnotiz: termin.beurteilungsnotiz ?? '',
|
||||
|
||||
Reference in New Issue
Block a user