Remove "prepare backup" step (#4551)

* Remove "prepare backup" step

* fix post-approval.ts
This commit is contained in:
Prospector
2025-10-14 15:35:50 -07:00
committed by GitHub
parent 4cd8ccd319
commit 03ed64c99f
6 changed files with 8 additions and 111 deletions

View File

@@ -107,7 +107,6 @@
:backup="backup"
:kyros-url="props.server.general?.node.instance"
:jwt="props.server.general?.node.token"
@prepare="() => prepareDownload(backup.id)"
@download="() => triggerDownloadAnimation()"
@rename="() => renameBackupModal?.show(backup)"
@restore="() => restoreBackupModal?.show(backup)"
@@ -233,19 +232,6 @@ function triggerDownloadAnimation() {
setTimeout(() => (overTheTopDownloadAnimation.value = false), 500)
}
const prepareDownload = async (backupId: string) => {
try {
await props.server.backups?.prepare(backupId)
} catch (error) {
console.error('Failed to prepare download:', error)
addNotification({
type: 'error',
title: 'Failed to prepare backup for download',
text: error as string,
})
}
}
const lockBackup = async (backupId: string) => {
try {
await props.server.backups?.lock(backupId)