mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Add followed corpora to Corpus List
This commit is contained in:
parent
451a0a3955
commit
4d2d4fcc40
@ -17,7 +17,12 @@ class CorpusList extends ResourceList {
|
||||
});
|
||||
});
|
||||
app.getUser(this.userId).then((user) => {
|
||||
let followedCorpora = [];
|
||||
for (let cfa of Object.values(user.corpus_follower_associations)) {
|
||||
followedCorpora.push(cfa.corpus);
|
||||
}
|
||||
this.add(Object.values(user.corpora));
|
||||
this.add(followedCorpora);
|
||||
this.isInitialized = true;
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user