diff --git a/containers/libreportal/frontend/js/components/backup/backup-page.js b/containers/libreportal/frontend/js/components/backup/backup-page.js index 30c72ca..20aa75b 100644 --- a/containers/libreportal/frontend/js/components/backup/backup-page.js +++ b/containers/libreportal/frontend/js/components/backup/backup-page.js @@ -559,6 +559,7 @@ class BackupPage { // Switching tabs always closes the export dropdown. this.toggleExportMenu(false); if (this.currentTab === 'locations') { + btn.style.display = ''; btn.innerHTML = ` @@ -569,6 +570,7 @@ class BackupPage { btn.dataset.intent = 'add-location'; btn.removeAttribute('aria-haspopup'); } else if (this.currentTab === 'configuration') { + btn.style.display = ''; btn.innerHTML = ` @@ -582,7 +584,8 @@ class BackupPage { `; btn.dataset.intent = 'export-menu'; btn.setAttribute('aria-haspopup', 'menu'); - } else { + } else if (this.currentTab === 'backups') { + btn.style.display = ''; btn.innerHTML = ` @@ -593,6 +596,10 @@ class BackupPage { `; btn.dataset.intent = 'backup-all'; btn.removeAttribute('aria-haspopup'); + } else { + // Dashboard and Migrate have no header primary action. + btn.style.display = 'none'; + btn.removeAttribute('aria-haspopup'); } }