mirror of
https://github.com/cloudmaker97/DurstRechner.git
synced 2025-12-05 23:48:39 +00:00
Setzen des TabStates bei Klick auf die Navbar Brand
This commit is contained in:
parent
8f77253c00
commit
4e74cab1cc
1 changed files with 3 additions and 0 deletions
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue