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();
|
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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue