Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[N21-2242] Vue Client: course sync add handling for substitute teachers #3459

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/locales/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default {
"common.roleName.student": "Schüler:in",
"common.roleName.superhero": "Schul-Cloud Admin",
"common.roleName.teacher": "Lehrkraft",
"common.roleName.groupSubstitutionTeacher": "Vertretungslehrkraft",
"common.tool.information.incomplete.outdated.schoolAndContext.teacher":
"Konfiguration des Tools {toolName} nicht aktuell oder unvollständig. Bitte Einstellungen überprüfen und an Schuladministrator:in wenden.",
"common.tool.information.outdated.student":
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export default {
"common.roleName.student": "Student",
"common.roleName.superhero": "Schul-Cloud Admin",
"common.roleName.teacher": "Teacher",
"common.roleName.groupSubstitutionTeacher": "Substitute Teacher",
"common.tool.information.incomplete.outdated.schoolAndContext.teacher":
"Configuration of the tool {toolName} is not up to date or incomplete. Please check settings.",
"common.tool.information.outdated.student":
Expand Down
1 change: 1 addition & 0 deletions src/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export default {
"common.roleName.student": "Estudiante",
"common.roleName.superhero": "Administrador de Schul-Cloud",
"common.roleName.teacher": "Profesor",
"common.roleName.groupSubstitutionTeacher": "Profesor suplente",
"common.tool.information.incomplete.outdated.schoolAndContext.teacher":
"La configuración de la herramienta {toolName} no está actualizada o está incompleta. Por favor verifique la configuración.",
"common.tool.information.outdated.student":
Expand Down
1 change: 1 addition & 0 deletions src/locales/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export default {
"common.roleName.student": "Учень",
"common.roleName.superhero": "Адміністратор Schul-Cloud",
"common.roleName.teacher": "Викладач",
"common.roleName.groupSubstitutionTeacher": "Викладач на заміну",
"common.tool.information.incomplete.outdated.schoolAndContext.teacher":
"Конфігурація інструмента {toolName} неоновлена або неповна. Перевірте налаштування.",
"common.tool.information.outdated.student":
Expand Down
3 changes: 3 additions & 0 deletions src/modules/data/group/GroupMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const GroupUserRoleMapping: Partial<Record<RoleName, GroupUserRole>> = {
[RoleName.Administrator]: GroupUserRole.Administrator,
[RoleName.Student]: GroupUserRole.Student,
[RoleName.Teacher]: GroupUserRole.Teacher,
[RoleName.GroupSubstitutionTeacher]: GroupUserRole.GroupSubstitutionTeacher,
};

export const GroupUserRoleNameTranslationMapping: Record<
Expand All @@ -26,6 +27,8 @@ export const GroupUserRoleNameTranslationMapping: Record<
[GroupUserRole.Administrator]: "common.roleName.administrator",
[GroupUserRole.Student]: "common.roleName.student",
[GroupUserRole.Teacher]: "common.roleName.teacher",
[GroupUserRole.GroupSubstitutionTeacher]:
"common.roleName.groupSubstitutionTeacher",
[GroupUserRole.Unknown]: "common.labels.unknown",
};

Expand Down
1 change: 1 addition & 0 deletions src/modules/data/group/types/groupUserRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export enum GroupUserRole {
Administrator = "administrator",
Student = "student",
Teacher = "teacher",
GroupSubstitutionTeacher = "groupSubstitutionTeacher",
Unknown = "unknown",
}
1 change: 1 addition & 0 deletions src/serverApi/v3/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7299,6 +7299,7 @@ export enum RoleName {
CourseAdministrator = 'courseAdministrator',
CourseStudent = 'courseStudent',
CourseSubstitutionTeacher = 'courseSubstitutionTeacher',
GroupSubstitutionTeacher = 'groupSubstitutionTeacher',
CourseTeacher = 'courseTeacher',
Demo = 'demo',
DemoStudent = 'demoStudent',
Expand Down
Loading