^fix code
Sonarqube Scanner / Build and analyze (push) Failing after 18s

This commit is contained in:
Florian Zumpe
2026-08-30 18:00:59 +02:00
parent 002bb7bc94
commit fd31bf91c4
+6 -2
View File
@@ -184,6 +184,7 @@
let dialog = byId('info-dialog') || qs('#info-dialog');
let title = byId('info-dialog-title') || qs('#info-dialog-title', dialog);
let backButton = byId('info-back') || qs('#info-back', dialog);
let legacyMenu = byId('info-menu') || qs('#info-menu', dialog);
let closeButton = byId('info-close') || qs('#info-close', dialog);
let content = qs('.info-dialog-content', dialog) || qs('.info-dialog-content');
@@ -238,6 +239,9 @@
setAttribute(backButton, 'aria-label', 'Zurück zum Informationsmenü');
backButton.hidden = true;
}
if (legacyMenu) {
legacyMenu.hidden = true;
}
if (closeButton) {
setAttribute(closeButton, 'type', 'button');
setAttribute(closeButton, 'aria-label', 'Informationsfenster schließen');
@@ -248,7 +252,7 @@
Object.keys(pageTitles).forEach(name => ensureInfoPage(content, name));
}
return { dialog, title, backButton, closeButton, content };
return { dialog, title, backButton, legacyMenu, closeButton, content };
}
function ensureInfoUi() {
@@ -444,4 +448,4 @@
}
ready(init);
}(globalThis.Wegwichtel = globalThis.Wegwichtel || {}));
}(globalThis.Wegwichtel = globalThis.Wegwichtel || {}));