mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Fix TesseractOCRPipelineModelList.js
This commit is contained in:
parent
575eeae94a
commit
685db81c85
@ -147,11 +147,6 @@ class TesseractOCRPipelineModelList extends ResourceList {
|
|||||||
if (listItemElement === null) {return;}
|
if (listItemElement === null) {return;}
|
||||||
let itemId = listItemElement.dataset.id;
|
let itemId = listItemElement.dataset.id;
|
||||||
let listActionElement = event.target.closest('.list-action-trigger[data-list-action]');
|
let listActionElement = event.target.closest('.list-action-trigger[data-list-action]');
|
||||||
// ignore switch clicks, handle them by the onChange method instead
|
|
||||||
if (listActionElement.classList.contains('switch')) {
|
|
||||||
event.preventDefault();
|
|
||||||
this.onChange(event);
|
|
||||||
}
|
|
||||||
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': {
|
||||||
|
Loading…
Reference in New Issue
Block a user