Setzen des TabStates bei Klick auf die Navbar Brand

This commit is contained in:
Dennis Heinrich 2025-04-06 16:38:02 +02:00
parent 8f77253c00
commit 4e74cab1cc

View file

@ -530,6 +530,9 @@ class TabManager {
* @param tab {string} The tab to switch to * @param tab {string} The tab to switch to
*/ */
static switchTab(tab) { static switchTab(tab) {
if(tab !== 'settings') {
TabManager.isSettingsTabActive = false;
}
const tabs = document.querySelectorAll('[data-tab]'); const tabs = document.querySelectorAll('[data-tab]');
tabs.forEach(e => { tabs.forEach(e => {
e.classList.add('d-none'); e.classList.add('d-none');