Template
v2.5.3: fix disabled Update panel button
This commit is contained in:
@@ -1693,7 +1693,7 @@
|
||||
|
||||
const upgradeBtn = document.getElementById('upgradePanelBtn');
|
||||
if (upgradeBtn) {
|
||||
upgradeBtn.disabled = !data.can_auto_update;
|
||||
upgradeBtn.disabled = false;
|
||||
upgradeBtn.title = data.can_auto_update ? '' : (modeHint ? modeHint.textContent : '');
|
||||
}
|
||||
|
||||
@@ -1702,9 +1702,7 @@
|
||||
statusDiv.style.border = '1px solid var(--success)';
|
||||
downloadBtn.href = data.html_url || data.releases_url || 'https://git.evilfox.cc/test2/Amnezia-Web-Panel-main/releases';
|
||||
downloadBtn.classList.remove('hidden');
|
||||
if (data.can_auto_update) {
|
||||
applyBtn.classList.remove('hidden');
|
||||
}
|
||||
applyBtn.classList.remove('hidden');
|
||||
} else {
|
||||
statusDiv.innerHTML = `<span style="color: var(--text-muted);">{{ _('up_to_date')|default('Up to date') }}</span>`;
|
||||
statusDiv.style.border = '1px solid var(--border-color)';
|
||||
|
||||
Reference in New Issue
Block a user