mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 07:46:31 +01:00
integer progress
This commit is contained in:
@@ -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 ? ` — ${job.error}` : ''}</p>` : '';
|
||||
const animateBar = stage !== 'complete' && stage !== 'error' && percent !== null;
|
||||
|
||||
Reference in New Issue
Block a user