simplification

This commit is contained in:
Patrick Jentsch 2022-11-17 13:10:06 +01:00
parent b0447e2544
commit 3004334d05
2 changed files with 2 additions and 6 deletions

View File

@ -96,9 +96,7 @@ class SpaCyNLPPipelineModelList extends RessourceList {
} }
onClick(event) { onClick(event) {
if (event.target.closest('.action-switch')) { if (event.target.closest('.action-switch')) {return;}
return;
}
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;
let spaCyNLPPipelineModelElement = event.target.closest('tr'); let spaCyNLPPipelineModelElement = event.target.closest('tr');

View File

@ -96,9 +96,7 @@ class TesseractOCRPipelineModelList extends RessourceList {
} }
onClick(event) { onClick(event) {
if (event.target.closest('.action-switch')) { if (event.target.closest('.action-switch')) {return;}
return;
}
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;
let tesseractOCRPipelineModelElement = event.target.closest('tr'); let tesseractOCRPipelineModelElement = event.target.closest('tr');