diff --git a/public/js/action-list.js b/public/js/action-list.js index 1d220c15f..8d5f69daf 100644 --- a/public/js/action-list.js +++ b/public/js/action-list.js @@ -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; @@ -122,9 +131,12 @@ container.dataset.suspendAutorefresh = ''; } + if (! dashboard) { + _this.addSelectionCountToFooter(list); + } + _this.clearSelection(toDeactivateItems); _this.setActive(toActiveItems); - _this.addSelectionCountToFooter(list); _this.setLastActivatedItemUrl(lastActivatedUrl); _this.loadDetailUrl(list, target.matches('a') ? target.getAttribute('href') : null); }