mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 15:32:17 +00:00
BUG: add fix for wrong lang class schedule type display in ClassSchedule overlay selector component
This commit is contained in:
@@ -1373,16 +1373,15 @@ export default {
|
||||
)?.bezeichnung_mehrsprachig || "";
|
||||
if (!typeDescriptions) return "";
|
||||
|
||||
return typeDescriptions[0].value || "";
|
||||
return this.userLanguage?.value === "English"
|
||||
? typeDescriptions[1].value
|
||||
: typeDescriptions[0].value;
|
||||
},
|
||||
handleChangeClassTimeSlotTypeForOverlay(newType) {
|
||||
let classTimeSlotType = this.classTimeSlotTypes.find(
|
||||
(type) => type.unterrichtszeitentyp_kurzbz === newType,
|
||||
);
|
||||
if (!classTimeSlotType) {
|
||||
// console.error(
|
||||
// "Could not find class time slot type for newType: " + newType,
|
||||
// );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1430,10 +1429,6 @@ export default {
|
||||
),
|
||||
);
|
||||
if (!selectedType) {
|
||||
// console.error(
|
||||
// "Could not find class time slot type for selected description: " +
|
||||
// selectedTypeDescription,
|
||||
// );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user