backup: show last integrity in info dialog

This commit is contained in:
Girish Ramakrishnan
2026-02-09 21:46:04 +01:00
parent 26999afc22
commit 26a3cf79c5
2 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -251,7 +251,7 @@ async function refreshIntegrityTasks() {
if (!result.active) delete integrityTasks.value[taskId];
}
const stillActive = Object.keys(integrityTasks).length !== 0;
const stillActive = Object.keys(integrityTasks.value).length !== 0;
if (stillActive) {
integrityPollTimer = setTimeout(refreshIntegrityTasks, 10000);
} else {
@@ -262,6 +262,7 @@ async function refreshIntegrityTasks() {
async function onCheckIntegrity(backup) {
const [error, taskId] = await backupsModel.checkIntegrity(backup.id);
if (error) return window.cloudron.onError(error);
backup.integrityCheckTaskId = taskId;
integrityTasks.value[taskId] = {};
await refreshIntegrityTasks();
}