mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
simplification
This commit is contained in:
parent
b0447e2544
commit
3004334d05
@ -96,9 +96,7 @@ class SpaCyNLPPipelineModelList extends RessourceList {
|
||||
}
|
||||
|
||||
onClick(event) {
|
||||
if (event.target.closest('.action-switch')) {
|
||||
return;
|
||||
}
|
||||
if (event.target.closest('.action-switch')) {return;}
|
||||
let actionButtonElement = event.target.closest('.action-button');
|
||||
let action = actionButtonElement === null ? 'view' : actionButtonElement.dataset.action;
|
||||
let spaCyNLPPipelineModelElement = event.target.closest('tr');
|
||||
|
@ -96,9 +96,7 @@ class TesseractOCRPipelineModelList extends RessourceList {
|
||||
}
|
||||
|
||||
onClick(event) {
|
||||
if (event.target.closest('.action-switch')) {
|
||||
return;
|
||||
}
|
||||
if (event.target.closest('.action-switch')) {return;}
|
||||
let actionButtonElement = event.target.closest('.action-button');
|
||||
let action = actionButtonElement === null ? 'view' : actionButtonElement.dataset.action;
|
||||
let tesseractOCRPipelineModelElement = event.target.closest('tr');
|
||||
|
Loading…
Reference in New Issue
Block a user