style: auto-fix linting issues

This commit is contained in:
SamidyFR 2026-03-10 07:45:19 +00:00 committed by github-actions[bot]
parent 92f8d4ef61
commit 71b65e70a8

View file

@ -1631,28 +1631,27 @@ export class UIRenderer {
this.updateGlobalTheme(); this.updateGlobalTheme();
} }
const downloadsdisabled = true;
const downloadsdisabled = true; if (downloadsdisabled == true) {
if (downloadsdisabled == true) { if (pageId === 'download') {
if (pageId === 'download') { const maintenanceModal = document.getElementById('maintenance-modal');
const maintenanceModal = document.getElementById('maintenance-modal'); const maintenanceHomeBtn = document.getElementById('maintenance-home-btn');
const maintenanceHomeBtn = document.getElementById('maintenance-home-btn'); if (maintenanceModal) {
if (maintenanceModal) { maintenanceModal.classList.add('active');
maintenanceModal.classList.add('active'); if (maintenanceHomeBtn) {
if (maintenanceHomeBtn) { maintenanceHomeBtn.onclick = () => {
maintenanceHomeBtn.onclick = () => { maintenanceModal.classList.remove('active');
maintenanceModal.classList.remove('active'); navigate('/');
navigate('/'); };
}; }
}
} else {
const maintenanceModal = document.getElementById('maintenance-modal');
if (maintenanceModal) {
maintenanceModal.classList.remove('active');
} }
} }
} else {
const maintenanceModal = document.getElementById('maintenance-modal');
if (maintenanceModal) {
maintenanceModal.classList.remove('active');
}
} }
}
if (pageId === 'settings') { if (pageId === 'settings') {
this.renderApiSettings(); this.renderApiSettings();
const savedTabName = settingsUiState.getActiveTab(); const savedTabName = settingsUiState.getActiveTab();