fix(backup): confirm legacy macOS destinations before manual runs
This commit is contained in:
1 parent
889fa4f5d0
commit
0ac2d33188
8 files changed
+123
-2
No files matched your search
@@ -457,6 +457,7 @@ export const beginDatabaseBackupSnapshot = forward("beginDatabaseBackupSnapshot"
|
||||
export const exportDatabaseSql = forward("exportDatabaseSql");
|
||||
export const cancelDatabaseExport = forward("cancelDatabaseExport");
|
||||
export const clearDatabaseExportCancellation = forward("clearDatabaseExportCancellation");
|
||||
export const databaseExportDestinationNeedsConfirmation = forward("databaseExportDestinationNeedsConfirmation");
|
||||
export const recordDatabaseExportDestination = forward("recordDatabaseExportDestination");
|
||||
export const exportQueryResultCsv = forward("exportQueryResultCsv");
|
||||
export const exportTableDataCsv = forward("exportTableDataCsv");
|
||||
|
||||
@@ -2480,6 +2480,10 @@ export async function clearDatabaseExportCancellation(_exportId: string): Promis
|
||||
// The web exporter owns and clears its cancellation marker on completion.
|
||||
}
|
||||
|
||||
export async function databaseExportDestinationNeedsConfirmation(_directory: string): Promise<boolean> {
|
||||
throw new Error("Scheduled database backups are only available in the desktop app.");
|
||||
}
|
||||
|
||||
export async function recordDatabaseExportDestination(_directory: string): Promise<void> {
|
||||
throw new Error("Scheduled database backups are only available in the desktop app.");
|
||||
}
|
||||
|
||||
@@ -5055,6 +5055,10 @@ export async function clearDatabaseExportCancellation(exportId: string): Promise
|
||||
await invoke("clear_database_export_cancellation", { exportId });
|
||||
}
|
||||
|
||||
export async function databaseExportDestinationNeedsConfirmation(directory: string): Promise<boolean> {
|
||||
return invoke("database_export_destination_needs_confirmation", { directory });
|
||||
}
|
||||
|
||||
export async function recordDatabaseExportDestination(directory: string): Promise<void> {
|
||||
await invoke("record_database_export_destination", { directory });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user