mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Hide analyze button if corpus is not ready for this
This commit is contained in:
		@@ -74,6 +74,9 @@ indicator will show up how the column is sorted right now.; */
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* styles for resource lists */
 | 
			
		||||
.analyse-link[href=""] {
 | 
			
		||||
  display: none;
 | 
			
		||||
}
 | 
			
		||||
.service[data-service]:before {
 | 
			
		||||
  content: "help";
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -56,7 +56,7 @@ RessourceList.dataMapper = {
 | 
			
		||||
  corpus: corpus => ({creation_date: corpus.creation_date,
 | 
			
		||||
                      description: corpus.description,
 | 
			
		||||
                      id: corpus.id,
 | 
			
		||||
                      "analyse-link": `/corpora/${corpus.id}/analyse`,
 | 
			
		||||
                      "analyse-link": ["analysing", "prepared", "start analysis"].includes(corpus.status) ? `/corpora/${corpus.id}/analyse` : "",
 | 
			
		||||
                      "edit-link": `/corpora/${corpus.id}`,
 | 
			
		||||
                      status: corpus.status,
 | 
			
		||||
                      title: corpus.title}),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user