mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-23 13:01:25 -08:00
fix: ExportWholeWikiHTML as index.html
This commit is contained in:
parent
6f0179a90e
commit
7cc3ab0d4d
9 changed files with 38 additions and 16 deletions
|
|
@ -7,6 +7,7 @@ import { injectable } from 'inversify';
|
|||
|
||||
import { DEFAULT_DOWNLOADS_PATH } from '@/constants/appPaths';
|
||||
import { MetaDataChannel, WikiChannel } from '@/constants/channels';
|
||||
import { wikiHtmlExtensions } from '@/constants/fileNames';
|
||||
import { tiddlywikiLanguagesMap } from '@/constants/languages';
|
||||
import { WikiCreationMethod } from '@/constants/wikiCreation';
|
||||
import type { IAuthenticationService } from '@services/auth/interface';
|
||||
|
|
@ -269,7 +270,10 @@ export class WorkspaceView implements IWorkspaceViewService {
|
|||
logger.error('Can not export whole wiki, activeWorkspace is undefined');
|
||||
return;
|
||||
}
|
||||
const folderToSaveWikiHtml = await this.nativeService.pickDirectory(DEFAULT_DOWNLOADS_PATH);
|
||||
const folderToSaveWikiHtml = await this.nativeService.pickDirectory(DEFAULT_DOWNLOADS_PATH, {
|
||||
allowOpenFile: true,
|
||||
filters: [{ name: 'HTML', extensions: wikiHtmlExtensions }],
|
||||
});
|
||||
await this.wikiService.packetHTMLFromWikiFolder(activeWorkspace.wikiFolderLocation, folderToSaveWikiHtml[0]);
|
||||
},
|
||||
enabled: hasWorkspaces,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue