feat: add delete backup functionality with confirmation dialog

This commit is contained in:
Jason
2026-02-26 22:06:10 +08:00
parent 3590df68b8
commit 01cc766a05
9 changed files with 216 additions and 14 deletions
+4
View File
@@ -238,4 +238,8 @@ export const backupsApi = {
async renameDbBackup(oldFilename: string, newName: string): Promise<string> {
return await invoke("rename_db_backup", { oldFilename, newName });
},
async deleteDbBackup(filename: string): Promise<void> {
await invoke("delete_db_backup", { filename });
},
};