mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Add followed corpora to Corpus List
This commit is contained in:
		@@ -17,7 +17,12 @@ class CorpusList extends ResourceList {
 | 
				
			|||||||
      });
 | 
					      });
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    app.getUser(this.userId).then((user) => {
 | 
					    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(Object.values(user.corpora));
 | 
				
			||||||
 | 
					      this.add(followedCorpora);
 | 
				
			||||||
      this.isInitialized = true;
 | 
					      this.isInitialized = true;
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user