Small Dashboard Job List fix

This commit is contained in:
Inga Kirschnick 2023-03-10 17:03:37 +01:00
parent 57a598ed20
commit bda18e64c8
2 changed files with 1 additions and 29 deletions

View File

@ -96,7 +96,7 @@ class JobList extends ResourceList {
let listAction = listActionElement === null ? 'view' : listActionElement.dataset.listAction; let listAction = listActionElement === null ? 'view' : listActionElement.dataset.listAction;
switch (listAction) { switch (listAction) {
case 'delete-request': { case 'delete-request': {
Utils.deleteJobRequest(this.userId, itemId); Requests.jobs.entity.delete(itemId);
break; break;
} }
case 'view': { case 'view': {

View File

@ -42,23 +42,6 @@
</div> </div>
</div> </div>
</div> </div>
{# <div class="col s12" id="social">
<h3>Social</h3>
<div class="card">
<div class="card-content">
<span class="card-title">Other users</span>
<p>Find other users and follow them to see their corpora.</p>
<div class="user-list no-autoinit"></div>
</div>
</div>
<div class="card">
<div class="card-content">
<span class="card-title">Public corpora</span>
<p>Find public corpora</p>
<div class="public-corpus-list no-autoinit"></div>
</div>
</div>
</div> #}
</div> </div>
</div> </div>
{% endblock page_content %} {% endblock page_content %}
@ -113,14 +96,3 @@
</div> </div>
</div> </div>
{% endblock modals %} {% endblock modals %}
{% block scripts %}
{{ super() }}
{# <script>
let userList = new UserList(document.querySelector('.user-list'));
userList.add({{ users|tojson }});
let publicCorpusList = new PublicCorpusList(document.querySelector('.public-corpus-list'));
publicCorpusList.add({{ corpora|tojson }});
</script> #}
{% endblock scripts %}