style: auto-fix linting issues
This commit is contained in:
parent
92f8d4ef61
commit
71b65e70a8
1 changed files with 18 additions and 19 deletions
37
js/ui.js
37
js/ui.js
|
|
@ -1631,28 +1631,27 @@ export class UIRenderer {
|
|||
this.updateGlobalTheme();
|
||||
}
|
||||
|
||||
|
||||
const downloadsdisabled = true;
|
||||
if (downloadsdisabled == true) {
|
||||
if (pageId === 'download') {
|
||||
const maintenanceModal = document.getElementById('maintenance-modal');
|
||||
const maintenanceHomeBtn = document.getElementById('maintenance-home-btn');
|
||||
if (maintenanceModal) {
|
||||
maintenanceModal.classList.add('active');
|
||||
if (maintenanceHomeBtn) {
|
||||
maintenanceHomeBtn.onclick = () => {
|
||||
maintenanceModal.classList.remove('active');
|
||||
navigate('/');
|
||||
};
|
||||
const downloadsdisabled = true;
|
||||
if (downloadsdisabled == true) {
|
||||
if (pageId === 'download') {
|
||||
const maintenanceModal = document.getElementById('maintenance-modal');
|
||||
const maintenanceHomeBtn = document.getElementById('maintenance-home-btn');
|
||||
if (maintenanceModal) {
|
||||
maintenanceModal.classList.add('active');
|
||||
if (maintenanceHomeBtn) {
|
||||
maintenanceHomeBtn.onclick = () => {
|
||||
maintenanceModal.classList.remove('active');
|
||||
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') {
|
||||
this.renderApiSettings();
|
||||
const savedTabName = settingsUiState.getActiveTab();
|
||||
|
|
|
|||
Loading…
Reference in a new issue