Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit 4ae2667d authored by Jakob Dieterle's avatar Jakob Dieterle
Browse files

rebase merge

parent be2b6798
No related branches found
No related tags found
1 merge request!279Resolve "Reviewers should be able to assign Exercise-Groups to Tutors"
......@@ -135,18 +135,20 @@ export default class TutorList extends Vue {
groups = []
this.userAccountGroups(tutor).then(function(value) {
groups = value // Success!
}, function(reason) {
console.log(reason) // Error!
}, (reason) => {
this.$notify({
title: 'Error',
text: `Unable to fetch tutors: ${reason}`,
type: 'error'
})
return []
})
const reservedSubmissions = TutorOverview.state.activeAssignments[tutor.pk]
//console.log(groups)
return {
...tutor,
reservedSubmissions: reservedSubmissions ? reservedSubmissions.length : 0,
}
})
console.log(tlist)
return tlist
}
......@@ -164,7 +166,6 @@ export default class TutorList extends Vue {
async userAccountGroups(tutor: Tutor) {
const groups = await (await fetchUser(tutor.pk)).exerciseGroups
console.log(groups)
return groups
}
......
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