From f1f0cf751696e01e3e538a78b77f3d7219432539 Mon Sep 17 00:00:00 2001 From: librelad Date: Mon, 1 Jun 2026 01:40:29 +0100 Subject: [PATCH] fix(webui): scope embedded backup-center mount check to the pane MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../frontend/components/apps/overview/js/overview-manager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/containers/libreportal/frontend/components/apps/overview/js/overview-manager.js b/containers/libreportal/frontend/components/apps/overview/js/overview-manager.js index 6901295..794aba7 100644 --- a/containers/libreportal/frontend/components/apps/overview/js/overview-manager.js +++ b/containers/libreportal/frontend/components/apps/overview/js/overview-manager.js @@ -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; }