diff --git a/index.html b/index.html index c02c329..4ffadfb 100644 --- a/index.html +++ b/index.html @@ -276,7 +276,7 @@ ⚙ Säännöt - Autopäivitys + Autopäivitys 30s 1 min diff --git a/script.js b/script.js index 3bdbcb6..e9cf4f4 100644 --- a/script.js +++ b/script.js @@ -235,7 +235,7 @@ function switchToTab(target) { if (target === 'leads') loadLeads(); if (target === 'archive') loadArchive(); if (target === 'changelog') loadChangelog(); - if (target === 'support') { loadTickets(); showTicketListView(); } + if (target === 'support') { loadTickets(); showTicketListView(); if (document.getElementById('ticket-auto-refresh').checked) startTicketAutoRefresh(); } if (target === 'users') loadUsers(); if (target === 'settings') loadSettings(); if (target === 'companies') loadCompaniesTab(); @@ -2155,8 +2155,12 @@ function applyBranding(branding) { if (logoUrl) { headerLogo.src = logoUrl; headerLogo.style.display = ''; if (headerIcon) headerIcon.style.display = 'none'; } else { headerLogo.style.display = 'none'; if (headerIcon) headerIcon.style.display = ''; } } - if (headerTitle) headerTitle.textContent = nimi; - if (headerSubtitle) headerSubtitle.textContent = subtitle || 'Hallintapaneeli'; + // Kun logo on, näytetään vain "Hallintapaneeli" — logo kertoo yrityksen + if (headerTitle) headerTitle.textContent = logoUrl ? 'Hallintapaneeli' : nimi; + if (headerSubtitle) { + if (logoUrl) { headerSubtitle.style.display = 'none'; } + else { headerSubtitle.style.display = ''; headerSubtitle.textContent = subtitle || 'Hallintapaneeli'; } + } // Sivun title document.title = nimi;