mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-28 16:56:36 +01:00
upgrade flow
This commit is contained in:
@@ -384,7 +384,13 @@ export default class SafeUpgrade {
|
|||||||
|
|
||||||
this.renderResult(data);
|
this.renderResult(data);
|
||||||
this.stopPolling();
|
this.stopPolling();
|
||||||
this.fetchStatus(true);
|
this.renderProgress({
|
||||||
|
stage: 'complete',
|
||||||
|
message: data.message || t('SAFE_UPGRADE_STAGE_COMPLETE', 'Upgrade complete'),
|
||||||
|
percent: 100,
|
||||||
|
target_version: data.version || (data.manifest && data.manifest.target_version) || null,
|
||||||
|
manifest: data.manifest || null
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
8
themes/grav/js/admin.min.js
vendored
8
themes/grav/js/admin.min.js
vendored
@@ -4846,7 +4846,13 @@ var SafeUpgrade = /*#__PURE__*/function () {
|
|||||||
}
|
}
|
||||||
_this4.renderResult(data);
|
_this4.renderResult(data);
|
||||||
_this4.stopPolling();
|
_this4.stopPolling();
|
||||||
_this4.fetchStatus(true);
|
_this4.renderProgress({
|
||||||
|
stage: 'complete',
|
||||||
|
message: data.message || t('SAFE_UPGRADE_STAGE_COMPLETE', 'Upgrade complete'),
|
||||||
|
percent: 100,
|
||||||
|
target_version: data.version || data.manifest && data.manifest.target_version || null,
|
||||||
|
manifest: data.manifest || null
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
Reference in New Issue
Block a user