mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
Remove analysis button in corpuslist for now
This commit is contained in:
parent
ea3416af4c
commit
1b3d0c1467
@ -18,8 +18,6 @@ class CorpusList extends RessourceList {
|
|||||||
let actionButtonElement = event.target.closest('.action-button');
|
let actionButtonElement = event.target.closest('.action-button');
|
||||||
let action = (actionButtonElement === null) ? 'view' : actionButtonElement.dataset.action;
|
let action = (actionButtonElement === null) ? 'view' : actionButtonElement.dataset.action;
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case 'analyse':
|
|
||||||
window.location.href = this.corpora[corpusId].analysis_url;
|
|
||||||
case 'delete':
|
case 'delete':
|
||||||
let deleteModalHTML = `<div class="modal">
|
let deleteModalHTML = `<div class="modal">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@ -38,7 +36,6 @@ class CorpusList extends RessourceList {
|
|||||||
deleteModal.open();
|
deleteModal.open();
|
||||||
break;
|
break;
|
||||||
case 'view':
|
case 'view':
|
||||||
// TODO: handle unprepared corpora
|
|
||||||
window.location.href = this.corpora[corpusId].url;
|
window.location.href = this.corpora[corpusId].url;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -92,7 +89,6 @@ CorpusList.options = {
|
|||||||
<td><span class="badge new status" data-badge-caption=""></span></td>
|
<td><span class="badge new status" data-badge-caption=""></span></td>
|
||||||
<td class="right-align">
|
<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 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>
|
<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>
|
</td>
|
||||||
</tr>`,
|
</tr>`,
|
||||||
|
Loading…
Reference in New Issue
Block a user