integer progress

This commit is contained in:
Andy Miller
2025-10-17 14:19:29 -06:00
parent 4aedf58f78
commit a572533120
2 changed files with 4 additions and 2 deletions

View File

@@ -673,7 +673,8 @@ export default class SafeUpgrade {
};
percent = scaledPercent();
const percentLabel = percent !== null ? `${percent}%` : '';
const displayPercent = percent !== null ? Math.round(percent) : null;
const percentLabel = displayPercent !== null ? `${displayPercent}%` : '';
const statusLine = job && job.status ? `<p class="safe-upgrade-status">${t('SAFE_UPGRADE_JOB_STATUS', 'Status')}: <strong>${job.status.toUpperCase()}</strong>${job.error ? ` &mdash; ${job.error}` : ''}</p>` : '';
const animateBar = stage !== 'complete' && stage !== 'error' && percent !== null;