mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Remove analysis button in corpuslist for now
This commit is contained in:
		@@ -18,8 +18,6 @@ class CorpusList extends RessourceList {
 | 
			
		||||
    let actionButtonElement = event.target.closest('.action-button');
 | 
			
		||||
    let action = (actionButtonElement === null) ? 'view' : actionButtonElement.dataset.action;
 | 
			
		||||
    switch (action) {
 | 
			
		||||
      case 'analyse':
 | 
			
		||||
        window.location.href = this.corpora[corpusId].analysis_url;
 | 
			
		||||
      case 'delete':
 | 
			
		||||
        let deleteModalHTML = `<div class="modal">
 | 
			
		||||
                                 <div class="modal-content">
 | 
			
		||||
@@ -38,7 +36,6 @@ class CorpusList extends RessourceList {
 | 
			
		||||
        deleteModal.open();
 | 
			
		||||
        break;
 | 
			
		||||
      case 'view':
 | 
			
		||||
        // TODO: handle unprepared corpora
 | 
			
		||||
        window.location.href = this.corpora[corpusId].url;
 | 
			
		||||
        break;
 | 
			
		||||
      default:
 | 
			
		||||
@@ -92,7 +89,6 @@ CorpusList.options = {
 | 
			
		||||
           <td><span class="badge new status" data-badge-caption=""></span></td>
 | 
			
		||||
           <td class="right-align">
 | 
			
		||||
             <a class="action-button btn-floating red tooltipped waves-effect waves-light" data-action="delete" data-position="top" data-tooltip="Delete"><i class="material-icons">delete</i></a>
 | 
			
		||||
             <a class="action-button btn-floating tooltipped waves-effect waves-light" data-action="analyse" data-position="top" data-tooltip="Analyse"><i class="material-icons">search</i></a>
 | 
			
		||||
             <a class="action-button btn-floating tooltipped waves-effect waves-light" data-action="view" data-position="top" data-tooltip="View"><i class="material-icons">send</i></a>
 | 
			
		||||
           </td>
 | 
			
		||||
         </tr>`,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user