backup added

This commit is contained in:
andrei-mihnea-cerbu
2025-02-04 22:33:28 +02:00
parent 5a6fa296be
commit 52d5f16300
9 changed files with 18 additions and 158 deletions
+3 -1
View File
@@ -65,7 +65,7 @@ async function restoreBackup() {
}
// Call the IPC method to initiate the backup retrieval process
window.electronAPI.startBackupRetrieval(destinationPath);
window.uiAPI.startBackupRetrieval(destinationPath);
// Switch the content to the 'backup_retrieve' page
fadeOut('backup_retrieve');
@@ -133,6 +133,8 @@ async function loadReceivedFiles() {
// Read the shareDirectory from applicationInfo
const shareDirData = await window.databaseAPI.getDirectoryInfo(shareDirId);
console.log('Loading received files:', shareDirData);
const notificationsDiv = document.getElementById('notifications');
const existingButtons = Array.from(notificationsDiv.children).map(button => button.getAttribute('data-filepath'));