diff --git a/dashboard/src/components/SystemBackupList.vue b/dashboard/src/components/SystemBackupList.vue index 89845fc22..e21a98ecc 100644 --- a/dashboard/src/components/SystemBackupList.vue +++ b/dashboard/src/components/SystemBackupList.vue @@ -245,6 +245,11 @@ async function onEditSubmit() { editDialog.value.close(); } +async function refresh() { + await refreshBackups(); + await refreshTasks(); +} + onMounted(async () => { const [error, result] = await backupSitesModel.list(); if (error) return console.error(error); @@ -258,6 +263,8 @@ onMounted(async () => { await refreshTasks(); }); +defineExpose({ refresh }); +