fix(webui): scope embedded backup-center mount check to the pane
The 'already mounted?' guard checked #backup-section, but the per-app Backups tab also defines that id — detect the prior mount via the pane's own .backup-layout instead so the check is correct, not coincidental. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
b374787486
commit
f1f0cf7516
@ -359,7 +359,9 @@ class OverviewManager {
|
||||
// configuration sections (its sidebar restyled as a nested tab strip). On a
|
||||
// revisit we refresh rather than re-mount, to keep its sub-tab + expand state.
|
||||
mountBackupCenter(pane) {
|
||||
if (document.getElementById('backup-section') && window.overviewBackupPage) {
|
||||
// Detect a prior mount by the embedded fragment in THIS pane — not by
|
||||
// #backup-section, which the per-app Backups tab also defines.
|
||||
if (pane.querySelector('.backup-layout') && window.overviewBackupPage) {
|
||||
try { window.overviewBackupPage.refreshAll().then(() => window.overviewBackupPage.render()).catch(() => {}); } catch (_) {}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user