mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	bug fixes and unfollow_corpus update
This commit is contained in:
		@@ -12,6 +12,8 @@
 | 
			
		||||
              <a class="modal-trigger" href="#cql-tutorial-modal" style="margin-left: 40px;"><i class="material-icons" style="font-size: inherit;">help</i> Corpus Query Language tutorial</a>
 | 
			
		||||
              <span> | </span>
 | 
			
		||||
              <a class="modal-trigger" href="#tagsets-modal"><i class="material-icons" style="font-size: inherit;">info</i> Tagsets</a>
 | 
			
		||||
              <span> | </span>
 | 
			
		||||
              <a class="modal-trigger" href="#example-modal"><i class="material-icons" style="font-size: inherit;">info</i> Examples</a>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="input-field col s12 m3">
 | 
			
		||||
              <i class="material-icons prefix">arrow_forward</i>
 | 
			
		||||
 
 | 
			
		||||
@@ -245,6 +245,12 @@
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="modal" id="example-modal">
 | 
			
		||||
  <div class="modal-content">
 | 
			
		||||
    <h4>Examples</h4>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<div class="modal" id="concordance-query-builder">
 | 
			
		||||
  <div class="modal-content">
 | 
			
		||||
    <div>
 | 
			
		||||
 
 | 
			
		||||
@@ -166,7 +166,7 @@
 | 
			
		||||
          <i class="material-icons prefix">badge</i>
 | 
			
		||||
          <select id="share-link-modal-corpus-follower-role-select">
 | 
			
		||||
            {% for corpus_follower_role in corpus_follower_roles %}
 | 
			
		||||
            <option value="{{ corpus_follower_role.hashid }}">{{ corpus_follower_role.name }}</option>
 | 
			
		||||
            <option value="{{ corpus_follower_role.name }}">{{ corpus_follower_role.name }}</option>
 | 
			
		||||
            {% endfor %}
 | 
			
		||||
          </select>
 | 
			
		||||
          <label>Role</label>
 | 
			
		||||
 
 | 
			
		||||
@@ -111,7 +111,7 @@
 | 
			
		||||
  let unfollowRequestElement = document.querySelector('.action-button[data-action="unfollow-request"]');
 | 
			
		||||
  unfollowRequestElement.addEventListener('click', () => {
 | 
			
		||||
    return new Promise((resolve, reject) => {
 | 
			
		||||
      fetch('{{ url_for("corpora.current_user_unfollow_corpus", corpus_id=corpus.id) }}', {method: 'POST', headers: {Accept: 'application/json'}})
 | 
			
		||||
      fetch('{{ url_for("corpora.unfollow_corpus", corpus_id=corpus.id, follower_id=current_user.id) }}', {method: 'POST', headers: {Accept: 'application/json'}})
 | 
			
		||||
        .then(
 | 
			
		||||
          (response) => {
 | 
			
		||||
            if (response.status === 403) {app.flash('Forbidden', 'error'); reject(response);}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user