diff --git a/containers/libreportal/frontend/html/backup-content.html b/containers/libreportal/frontend/html/backup-content.html index b8d2796..9149243 100644 --- a/containers/libreportal/frontend/html/backup-content.html +++ b/containers/libreportal/frontend/html/backup-content.html @@ -216,6 +216,20 @@ +
Delete location ${this.escape(name)}?
+Backup data already stored at this location is not deleted — only LibrePortal's reference to it. The password file on disk also stays in place.
+ `; + modal.dataset.locIdx = String(idx); + modal.classList.add('open'); + } + + async confirmDeleteLocation() { + const modal = document.getElementById('backup-delete-location-modal'); + if (!modal) return; + const idx = parseInt(modal.dataset.locIdx, 10); + this.closeAllModals(); this.expandedLocs.delete(idx); await this.runTask(`libreportal backup location remove ${idx}`, 'backup', null); setTimeout(() => this.reloadAfterSave(), 2000);