Skip to content
Snippets Groups Projects
Commit 2d154927 authored by Ron Lucke's avatar Ron Lucke Committed by Elmar Ludwig
Browse files

fix #329

parent ac32af21
No related branches found
No related tags found
No related merge requests found
...@@ -78,22 +78,28 @@ export default { ...@@ -78,22 +78,28 @@ export default {
}, },
}, },
methods: { methods: {
...mapActions({ loadRelatedFolders: 'folders/loadRelated' }), ...mapActions({
loadRelatedFolders: 'folders/loadRelated'
}),
changeSelection() { changeSelection() {
this.$emit('input', this.currentValue); this.$emit('input', this.currentValue);
}, },
getCourseFolders() { getCourseFolders() {
return this.loadRelatedFolders({ const parent = this.courseObject;
parent: this.courseObject, const relationship = 'folders';
relationship: 'folders', const options = { 'page[limit]': 10000 };
});
return this.loadRelatedFolders({ parent, relationship, options });
}, },
getUserFolders() { getUserFolders() {
return this.loadRelatedFolders({ const parent = this.userObject;
parent: this.userObject, const relationship = 'folders';
relationship: 'folders', const options = { 'page[limit]': 10000 };
});
return this.loadRelatedFolders({ parent, relationship, options });
}, },
}, },
mounted() { mounted() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment