Skip to content
Snippets Groups Projects
Commit ea27d03a authored by Marcus Eibrink-Lunzenauer's avatar Marcus Eibrink-Lunzenauer
Browse files

Prevent loading of course memberships in Arbeitsplatz.

Closes #5050

Merge request studip/studip!3778
parent bbedd741
No related branches found
No related tags found
No related merge requests found
...@@ -256,8 +256,10 @@ export default { ...@@ -256,8 +256,10 @@ export default {
mounted() { mounted() {
this.updateNestedChildren(); this.updateNestedChildren();
const parent = { type: 'courses', id: this.context.id }; const parent = { type: 'courses', id: this.context.id };
this.loadCourseMemberships({ parent, relationship: 'memberships', options: {'page[limit]': 10000 } }); if (this.context.type === 'courses') {
this.loadCourseStatusGroups({ parent, relationship: 'status-groups' }); this.loadCourseMemberships({ parent, relationship: 'memberships', options: {'page[limit]': 10000 } });
this.loadCourseStatusGroups({ parent, relationship: 'status-groups' });
}
}, },
watch: { watch: {
structuralElements() { structuralElements() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment