restore tool - but not curretly working

This commit is contained in:
Andy Miller
2025-10-18 12:04:25 -06:00
parent 7bb6044e05
commit 796c61e66d
9 changed files with 393 additions and 9 deletions

View File

@@ -5258,9 +5258,8 @@ var SafeUpgrade = /*#__PURE__*/function () {
if (status === 'success' || status === 'finalized') {
var manifest = result.manifest || {};
var target = result.version || manifest.target_version || '';
var backup = manifest.backup_path || '';
var identifier = manifest.id || '';
this.steps.result.html("\n <div class=\"safe-upgrade-result success\">\n <h3>".concat(r('SAFE_UPGRADE_RESULT_SUCCESS', target, 'Grav upgraded to v%s'), "</h3>\n ").concat(identifier ? "<p>".concat(r('SAFE_UPGRADE_RESULT_MANIFEST', identifier, 'Snapshot reference: %s'), "</p>") : '', "\n ").concat(backup ? "<p>".concat(r('SAFE_UPGRADE_RESULT_ROLLBACK', backup, 'Rollback snapshot stored at: %s'), "</p>") : '', "\n </div>\n "));
this.steps.result.html("\n <div class=\"safe-upgrade-result success\">\n <h3>".concat(r('SAFE_UPGRADE_RESULT_SUCCESS', target, 'Grav upgraded to v%s'), "</h3>\n ").concat(identifier ? "<p>".concat(r('SAFE_UPGRADE_RESULT_MANIFEST', identifier, 'Snapshot reference: <code>%s</code>'), "</p>") : '', "\n <p>").concat(t('SAFE_UPGRADE_RESULT_HINT', 'Restore snapshots from Tools → Restore Grav.'), "</p>\n </div>\n "));
this.switchStep('result');
external_jQuery_default()('[data-gpm-grav]').remove();
if (target) {