Ensure we also refetch the backup sites when reloading the system backups

This commit is contained in:
Johannes Zellner
2025-12-02 14:51:40 +01:00
parent c6858d505f
commit e24ee05337
2 changed files with 10 additions and 9 deletions
@@ -170,6 +170,13 @@ async function refreshBackups() {
backups.value = result;
}
async function refreshBackupSites() {
const [error, result] = await backupSitesModel.list();
if (error) return console.error(error);
sites.value = result;
}
async function onDownloadConfig(backup) {
const [error, dashboardConfig] = await dashboardModel.config();
if (error) return console.error(error);
@@ -216,16 +223,13 @@ async function onEditSubmit() {
}
async function refresh() {
await refreshBackupSites();
await refreshBackups();
await refreshTasks();
}
onMounted(async () => {
const [error, result] = await backupSitesModel.list();
if (error) return console.error(error);
sites.value = result;
await refreshBackupSites();
await refreshBackups();
busy.value = false;