mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 00:36:31 +02:00
fix for progress bar
This commit is contained in:
@@ -615,7 +615,9 @@ export default class SafeUpgrade {
|
||||
|
||||
switchStep(step) {
|
||||
Object.keys(this.steps).forEach((handle) => {
|
||||
this.steps[handle].toggle(handle === step);
|
||||
const isActive = handle === step;
|
||||
this.steps[handle].toggle(isActive);
|
||||
this.steps[handle].toggleClass('hidden', !isActive);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
4
themes/grav/js/admin.min.js
vendored
4
themes/grav/js/admin.min.js
vendored
@@ -5071,7 +5071,9 @@ var SafeUpgrade = /*#__PURE__*/function () {
|
||||
value: function switchStep(step) {
|
||||
var _this7 = this;
|
||||
Object.keys(this.steps).forEach(function (handle) {
|
||||
_this7.steps[handle].toggle(handle === step);
|
||||
var isActive = handle === step;
|
||||
_this7.steps[handle].toggle(isActive);
|
||||
_this7.steps[handle].toggleClass('hidden', !isActive);
|
||||
});
|
||||
}
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user