mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Check if corpus is exportable before exporting it
This commit is contained in:
		@@ -79,6 +79,9 @@ class CorpusDisplay extends RessourceDisplay {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    for (let element of this.displayElement.querySelectorAll('.corpus-status')) {this.setElement(element, status);}
 | 
			
		||||
    for (let exportCorpusTriggerElement of this.displayElement.querySelectorAll('.export-corpus-trigger')) {
 | 
			
		||||
      exportCorpusTriggerElement.classList.toggle('disabled', !['prepared', 'start analysis', 'stop analysis'].includes(status));
 | 
			
		||||
    }
 | 
			
		||||
    for (let element of this.displayElement.querySelectorAll('.status')) {element.dataset.status = status;}
 | 
			
		||||
    for (let element of this.displayElement.querySelectorAll('.status-spinner')) {
 | 
			
		||||
      if (['submitted', 'queued', 'running', 'canceling', 'start analysis', 'stop analysis'].includes(status)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user