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

Merge branch...

Merge branch '272-reviewers-should-be-able-to-assign-exercise-groups-to-tutors' of gitlab.gwdg.de:j.michal/grady into 272-reviewers-should-be-able-to-assign-exercise-groups-to-tutors
parents 4ae2667d 8de655a1
No related branches found
No related tags found
1 merge request!279Resolve "Reviewers should be able to assign Exercise-Groups to Tutors"
Pipeline #219197 failed
...@@ -131,8 +131,7 @@ export default class TutorList extends Vue { ...@@ -131,8 +131,7 @@ export default class TutorList extends Vue {
get tutors () { get tutors () {
var tlist = TutorOverview.state.tutors.map(tutor => { var tlist = TutorOverview.state.tutors.map(tutor => {
var groups: Group[] var groups: Group[] = []
groups = []
this.userAccountGroups(tutor).then(function(value) { this.userAccountGroups(tutor).then(function(value) {
groups = value // Success! groups = value // Success!
}, (reason) => { }, (reason) => {
...@@ -152,18 +151,6 @@ export default class TutorList extends Vue { ...@@ -152,18 +151,6 @@ export default class TutorList extends Vue {
return tlist return tlist
} }
get groups () {
return Assignments.state.groups.slice().sort((a, b) => {
const matches_a = a.name.match(/(\d+)/)
const number_a = Number(matches_a === null ? 0 : matches_a[1])
const matches_b = b.name.match(/(\d+)/)
const number_b = Number(matches_b === null ? 0 : matches_b[1])
return (number_a<number_b?-1:(number_a>number_b?1:0))
})
}
async userAccountGroups(tutor: Tutor) { async userAccountGroups(tutor: Tutor) {
const groups = await (await fetchUser(tutor.pk)).exerciseGroups const groups = await (await fetchUser(tutor.pk)).exerciseGroups
return 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