mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Update Public Corpus Page
This commit is contained in:
		@@ -152,7 +152,14 @@ class CorpusFileList extends ResourceList {
 | 
			
		||||
        );
 | 
			
		||||
        let confirmElement = modalElement.querySelector('.action-button[data-action="confirm"]');
 | 
			
		||||
        confirmElement.addEventListener('click', (event) => {
 | 
			
		||||
          Requests.corpora.entity.files.ent.delete(this.corpusId, itemId);
 | 
			
		||||
          if (currentUserId != this.userId) {
 | 
			
		||||
            Requests.corpora.entity.files.ent.delete(this.corpusId, itemId)
 | 
			
		||||
            .then(() => {
 | 
			
		||||
              window.location.reload();
 | 
			
		||||
            });
 | 
			
		||||
          } else {
 | 
			
		||||
            Requests.corpora.entity.followers.entity.delete(this.corpusId, followerId);
 | 
			
		||||
          }
 | 
			
		||||
        });
 | 
			
		||||
        modal.open();
 | 
			
		||||
        break;
 | 
			
		||||
 
 | 
			
		||||
@@ -142,7 +142,14 @@ class CorpusFollowerList extends ResourceList {
 | 
			
		||||
    switch (listAction) {
 | 
			
		||||
      case 'unfollow-request': {
 | 
			
		||||
        let followerId = listItemElement.dataset.followerId;
 | 
			
		||||
        Requests.corpora.entity.followers.entity.delete(this.corpusId, followerId);
 | 
			
		||||
        if (currentUserId != this.userId) {
 | 
			
		||||
          Requests.corpora.entity.followers.entity.delete(this.corpusId, followerId)
 | 
			
		||||
            .then(() => {
 | 
			
		||||
              window.location.reload();
 | 
			
		||||
            });
 | 
			
		||||
        } else {
 | 
			
		||||
          Requests.corpora.entity.followers.entity.delete(this.corpusId, followerId);
 | 
			
		||||
        }
 | 
			
		||||
        break;
 | 
			
		||||
      }
 | 
			
		||||
      case 'view': {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user