Ensure we also refetch the backup sites when reloading the system backups
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user