mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
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:
1 parent
31fc9be1ed
commit
7d5c541933
12 files changed
+228
-50
No files matched your search
@@ -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)
|
||||
},
|
||||
|
||||
// ==================== 同步 ====================
|
||||
|
||||
Reference in new issue
Block a user