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

readded get groups

parent 5e091c55
No related branches found
No related tags found
1 merge request!279Resolve "Reviewers should be able to assign Exercise-Groups to Tutors"
Pipeline #221218 passed
......@@ -158,6 +158,19 @@ export default class TutorList extends Vue {
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) {
const groups = await (await fetchUser(tutor.pk)).exerciseGroups
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