class QueryResultList extends RessourceList { constructor(listElement, options = {}) { super(listElement, {...QueryResultList.options, ...options}); } init(user) { super.init(user.query_results); } onclick(event) { let queryResultElement = event.target.closest('tr[data-id]'); if (queryResultElement === null) {return;} let queryResultId = queryResultElement.dataset.id; let actionButtonElement = event.target.closest('.action-button[data-action]'); let action = actionButtonElement === null ? 'view' : actionButtonElement.dataset.action; switch (action) { case 'delete': let deleteModalHTML = `