mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
integer progress
This commit is contained in:
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