mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
action-list.js: Fix dashboard support
This commit is contained in:
parent
3084af713a
commit
1e6bb409ca
1 changed files with 14 additions and 1 deletions
|
|
@ -107,6 +107,15 @@
|
|||
return;
|
||||
}
|
||||
|
||||
let dashboard = list.closest('.dashboard');
|
||||
if (dashboard) {
|
||||
dashboard.querySelectorAll('.action-list').forEach(otherList => {
|
||||
if (otherList !== list) {
|
||||
toDeactivateItems.push(..._this.getAllItems(otherList));
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
let lastActivatedUrl = null;
|
||||
if (toActiveItems.includes(item)) {
|
||||
lastActivatedUrl = item.dataset.icingaDetailFilter;
|
||||
|
|
@ -124,7 +133,11 @@
|
|||
|
||||
_this.clearSelection(toDeactivateItems);
|
||||
_this.setActive(toActiveItems);
|
||||
_this.addSelectionCountToFooter(list);
|
||||
|
||||
if (! dashboard) {
|
||||
_this.addSelectionCountToFooter(list);
|
||||
}
|
||||
|
||||
_this.setLastActivatedItemUrl(lastActivatedUrl);
|
||||
_this.loadDetailUrl(list, target.matches('a') ? target.getAttribute('href') : null);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue