mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 00:36:31 +02: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;
|
||||
|
||||
3
themes/grav/js/admin.min.js
vendored
3
themes/grav/js/admin.min.js
vendored
@@ -5141,7 +5141,8 @@ var SafeUpgrade = /*#__PURE__*/function () {
|
||||
return percent;
|
||||
};
|
||||
percent = scaledPercent();
|
||||
var percentLabel = percent !== null ? "".concat(percent, "%") : '';
|
||||
var displayPercent = percent !== null ? Math.round(percent) : null;
|
||||
var percentLabel = displayPercent !== null ? "".concat(displayPercent, "%") : '';
|
||||
var statusLine = job && job.status ? "<p class=\"safe-upgrade-status\">".concat(t('SAFE_UPGRADE_JOB_STATUS', 'Status'), ": <strong>").concat(job.status.toUpperCase(), "</strong>").concat(job.error ? " — ".concat(job.error) : '', "</p>") : '';
|
||||
var animateBar = stage !== 'complete' && stage !== 'error' && percent !== null;
|
||||
var barClass = "safe-upgrade-progress-bar".concat(animateBar ? ' is-active' : '');
|
||||
|
||||
Reference in New Issue
Block a user