disable desktop app downloads page while we fix the desktop app
This commit is contained in:
parent
ad615f52f8
commit
a4b84ec0b3
2 changed files with 58 additions and 0 deletions
36
index.html
36
index.html
|
|
@ -1672,6 +1672,42 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="maintenance-modal" class="modal">
|
||||||
|
<div class="modal-overlay"></div>
|
||||||
|
<div class="modal-content" style="text-align: center">
|
||||||
|
<h3 style="color: #ef4444; display: flex; align-items: center; gap: 0.5rem; justify-content: center">
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="24"
|
||||||
|
height="24"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="2"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
Maintenance Notice
|
||||||
|
</h3>
|
||||||
|
<p style="margin: 1.5rem 0; line-height: 1.6; font-size: 1.1rem">
|
||||||
|
The desktop version of Monochrome is currently undergoing essential maintenance to address critical
|
||||||
|
issues.
|
||||||
|
</p>
|
||||||
|
<p style="margin-bottom: 2rem; color: var(--muted-foreground); line-height: 1.5">
|
||||||
|
Downloads are temporarily disabled while we work on fixing these issues. Please check back later.
|
||||||
|
</p>
|
||||||
|
<div class="modal-actions" style="justify-content: center">
|
||||||
|
<button id="maintenance-home-btn" class="btn-primary" style="padding: 0.75rem 2rem">
|
||||||
|
Back to Home
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="donate-modal" class="modal">
|
<div id="donate-modal" class="modal">
|
||||||
<div class="modal-overlay"></div>
|
<div class="modal-overlay"></div>
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
|
|
|
||||||
22
js/ui.js
22
js/ui.js
|
|
@ -1631,6 +1631,28 @@ export class UIRenderer {
|
||||||
this.updateGlobalTheme();
|
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('/');
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} 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