Compare commits

..

No commits in common. "7f29d33c45ff1726edc203d266eb60151d138195" and "8fa13ae52bd5a36c89bf366899ce46cf5dc6e9db" have entirely different histories.

2 changed files with 12 additions and 12 deletions

View File

@ -154,17 +154,20 @@
<section class="backup-tabpanel" id="backup-panel-migrate"> <section class="backup-tabpanel" id="backup-panel-migrate">
<div class="backup-card backup-migrate-card"> <div class="backup-card backup-migrate-card">
<div class="backup-card-header"> <div class="backup-card-header">
<h2>Cross-host migrate <span class="tooltip" title="Pulls a snapshot taken on another host out of a shared backup location and lays it down here. The destination's existing copy of the app is snapshotted first (rollback safety), then replaced." style="font-size:.75em;opacity:.7;cursor:help"></span></h2> <h2>Restore an app from another LibrePortal</h2>
<span class="backup-card-hint">Restore an app from another LibrePortal</span> <span class="backup-card-hint">
Pulls a snapshot taken on another host out of a shared backup location and
lays it down here. The destination's existing copy of the app is snapshotted
first (rollback safety), then replaced.
</span>
</div> </div>
<div class="backup-migrate-empty" id="backup-migrate-empty" hidden> <div class="backup-migrate-empty" id="backup-migrate-empty" hidden>
<div class="backup-empty-state"> <p>No backups from other hosts found in any enabled location.</p>
No backups from other hosts visible in any enabled location.<br> <p class="backup-card-hint">
Add a <strong>shared backup location</strong> on both hosts to enable cross-host migrate. Either no other LibrePortal has backed up to a location this host can see,
<div style="margin-top:12px"> or this is the only host using its locations. Add a shared backup location
<button type="button" class="backup-primary-btn" data-action="go-to-locations">Open Locations</button> on both hosts to enable cross-host migrate.
</div> </p>
</div>
</div> </div>
<div class="backup-migrate-body" id="backup-migrate-body"></div> <div class="backup-migrate-body" id="backup-migrate-body"></div>
</div> </div>

View File

@ -282,9 +282,6 @@ class BackupPage {
const exportBtn = e.target.closest('[data-action="export-passwords"]'); const exportBtn = e.target.closest('[data-action="export-passwords"]');
if (exportBtn) { this.toggleExportMenu(false); this.exportRepositoryPasswords(exportBtn); return; } if (exportBtn) { this.toggleExportMenu(false); this.exportRepositoryPasswords(exportBtn); return; }
const goToLocations = e.target.closest('[data-action="go-to-locations"]');
if (goToLocations) { this.switchTab('locations'); return; }
const dismissWarn = e.target.closest('[data-action="dismiss-config-warning"]'); const dismissWarn = e.target.closest('[data-action="dismiss-config-warning"]');
if (dismissWarn) { if (dismissWarn) {
window.Dismissible?.dismiss('backup-config-warning'); window.Dismissible?.dismiss('backup-config-warning');