mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-23 18:07:42 +02:00
dashboard.js: Only handle rendered
events we're interested in
This commit is contained in:
parent
8ed9af5746
commit
757a28bf4f
@ -131,6 +131,12 @@
|
|||||||
|
|
||||||
onRendered(e) {
|
onRendered(e) {
|
||||||
let _this = e.data.self;
|
let _this = e.data.self;
|
||||||
|
|
||||||
|
if (e.currentTarget !== e.target || ! e.target.querySelector(':scope > .dashboard-manager')) {
|
||||||
|
// This is for the editor only, which has no nested .containers but a .dashboard-manager
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
e.target.querySelectorAll('.dashboard-settings, .dashboard-item-list, .dashlet-item-list')
|
e.target.querySelectorAll('.dashboard-settings, .dashboard-item-list, .dashlet-item-list')
|
||||||
.forEach(sortable => {
|
.forEach(sortable => {
|
||||||
let groupName = _this.getTypeFor(sortable),
|
let groupName = _this.getTypeFor(sortable),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user