feat(sync): add option to delete imported chats when removing subscription

- Show confirmation dialog with two choices: keep data or delete imported chats
- Backend supports deleteData param across CLI routes and Electron IPC
- DataSourceManager.removeSession now returns the removed session info
- Add i18n strings for the delete confirmation dialog (zh-CN/en-US/ja-JP/zh-TW)
This commit is contained in:
digua authored and digua committed 2026-05-23 16:28:50 +08:00
1 parent 31fc9be1ed
commit 7d5c541933
12 files changed
+228 -50

No files matched your search

+2 -2
View File
@@ -126,8 +126,8 @@ export const apiServerApi = {
return ipcRenderer.invoke('api:addImportSessions', sourceId, sessions)
},
removeImportSession: (sourceId: string, sessionId: string): Promise<boolean> => {
return ipcRenderer.invoke('api:removeImportSession', sourceId, sessionId)
removeImportSession: (sourceId: string, sessionId: string, deleteData?: boolean): Promise<boolean> => {
return ipcRenderer.invoke('api:removeImportSession', sourceId, sessionId, deleteData)
},
// ==================== 同步 ====================