mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-11 17:54:20 +01:00
This commit is contained in:
parent
64ae905921
commit
ff3cd4d4e9
21 changed files with 117 additions and 85 deletions
|
|
@ -5,7 +5,7 @@ import {SaveDialogReturnValue, shell} from "electron";
|
|||
import {afterExport} from "../protyle/export/util";
|
||||
/// #endif
|
||||
import {isBrowser} from "../util/functions";
|
||||
import {showMessage} from "../dialog/message";
|
||||
import {hideMessage, showMessage} from "../dialog/message";
|
||||
|
||||
export const exportConfig = {
|
||||
element: undefined as Element,
|
||||
|
|
@ -162,10 +162,11 @@ export const exportConfig = {
|
|||
properties: ["showOverwriteConfirmation"],
|
||||
}).then((result: SaveDialogReturnValue) => {
|
||||
if (!result.canceled) {
|
||||
showMessage(window.siyuan.languages.exporting, -1);
|
||||
const id = showMessage(window.siyuan.languages.exporting, -1);
|
||||
fetchPost("/api/export/exportDataInFolder", {
|
||||
folder: result.filePath
|
||||
}, () => {
|
||||
hideMessage(id)
|
||||
afterExport(result.filePath);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue