Make the joblist clickable again

This commit is contained in:
Patrick Jentsch 2023-10-05 14:19:46 +02:00
parent 1d6834302d
commit 7cae84ffdc

View File

@ -29,7 +29,7 @@ class JobList extends ResourceList {
get item() {
return `
<tr class="list-item service-scheme">
<tr class="list-item service-scheme clickable hoverable">
<td>
<label class="list-action-trigger" data-list-action="select">
<input class="select-checkbox" type="checkbox">
@ -112,7 +112,7 @@ class JobList extends ResourceList {
if (listItemElement === null) {return;}
let itemId = listItemElement.dataset.id;
let listActionElement = event.target.closest('.list-action-trigger[data-list-action]');
let listAction = listActionElement === null ? '' : listActionElement.dataset.listAction;
let listAction = listActionElement === null ? 'view' : listActionElement.dataset.listAction;
switch (listAction) {
case 'delete-request': {
let values = this.listjs.get('id', itemId)[0].values();