Hide inline release progress text; keep log height fixed

This commit is contained in:
Aaron
2025-12-13 09:33:39 -05:00
parent b611d247b2
commit d436d3013d
2 changed files with 4 additions and 4 deletions

View File

@@ -169,7 +169,7 @@ export function initReleaseUI({ showToast, showBusy, hideBusy, confirmAction })
if (releaseCurrent) releaseCurrent.textContent = current_version; if (releaseCurrent) releaseCurrent.textContent = current_version;
if (releaseLatest) releaseLatest.textContent = latest_version; if (releaseLatest) releaseLatest.textContent = latest_version;
if (releaseAutoCheck) releaseAutoCheck.checked = !!auto_check; if (releaseAutoCheck) releaseAutoCheck.checked = !!auto_check;
if (releaseProgress) releaseProgress.textContent = progress || ""; if (releaseProgress) releaseProgress.textContent = "";
if (status === "in_progress" && progress) { if (status === "in_progress" && progress) {
showBusy("Working on update…", progress || "This can take up to a minute."); showBusy("Working on update…", progress || "This can take up to a minute.");
pollReleaseStatus(); pollReleaseStatus();
@@ -224,7 +224,6 @@ export function initReleaseUI({ showToast, showBusy, hideBusy, confirmAction })
releaseCheckBtn?.addEventListener("click", async () => { releaseCheckBtn?.addEventListener("click", async () => {
try { try {
if (releaseProgress) releaseProgress.textContent = "Checking for updates…";
logRelease("Checking for updates…"); logRelease("Checking for updates…");
await checkRelease(); await checkRelease();
await loadReleaseStatus(true); await loadReleaseStatus(true);
@@ -261,7 +260,6 @@ export function initReleaseUI({ showToast, showBusy, hideBusy, confirmAction })
} }
releaseBusyActive = true; releaseBusyActive = true;
showBusy("Updating Pi-Kit…", "Applying release. This can take up to a minute."); showBusy("Updating Pi-Kit…", "Applying release. This can take up to a minute.");
if (releaseProgress) releaseProgress.textContent = "Downloading and installing…";
logRelease("Starting upgrade…"); logRelease("Starting upgrade…");
await applyRelease(); await applyRelease();
pollReleaseStatus(); pollReleaseStatus();
@@ -278,7 +276,6 @@ export function initReleaseUI({ showToast, showBusy, hideBusy, confirmAction })
try { try {
releaseBusyActive = true; releaseBusyActive = true;
showBusy("Rolling back…", "Restoring previous backup."); showBusy("Rolling back…", "Restoring previous backup.");
if (releaseProgress) releaseProgress.textContent = "Rolling back…";
logRelease("Starting rollback…"); logRelease("Starting rollback…");
await rollbackRelease(); await rollbackRelease();
pollReleaseStatus(); pollReleaseStatus();

View File

@@ -422,6 +422,9 @@ body {
min-height: 220px; min-height: 220px;
overflow-y: auto; overflow-y: auto;
} }
#releaseProgress {
display: none;
}
:root[data-theme="light"] .log-box { :root[data-theme="light"] .log-box {
background: rgba(12, 18, 32, 0.04); background: rgba(12, 18, 32, 0.04);
} }