save button issue
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
"name": "win-local",
|
"name": "win-local",
|
||||||
"displayName": "Windows • Debug (local — build dir outside OneDrive/spaces)",
|
"displayName": "Windows • Debug (local — build dir outside OneDrive/spaces)",
|
||||||
"inherits": "windows-debug",
|
"inherits": "windows-debug",
|
||||||
"binaryDir": "C:/Users/@USERNAME@/pdfeng-build/win-local",
|
"binaryDir": "D:/pdfeng-build/win-local",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"PDFENGINE_WITH_PDFIUM": "ON",
|
"PDFENGINE_WITH_PDFIUM": "ON",
|
||||||
"PDFENGINE_WITH_QPDF": "ON"
|
"PDFENGINE_WITH_QPDF": "ON"
|
||||||
@@ -16,8 +16,11 @@
|
|||||||
"name": "win-local-pdfium",
|
"name": "win-local-pdfium",
|
||||||
"displayName": "Windows • RelWithDebInfo + PDFium (static CRT — build dir outside OneDrive/spaces)",
|
"displayName": "Windows • RelWithDebInfo + PDFium (static CRT — build dir outside OneDrive/spaces)",
|
||||||
"inherits": "windows-release",
|
"inherits": "windows-release",
|
||||||
"binaryDir": "C:/Users/@USERNAME@/pdfeng-build/win-local-pdfium",
|
"binaryDir": "D:/pdfeng-build/win-local-pdfium",
|
||||||
"cacheVariables": { "PDFENGINE_WITH_PDFIUM": "ON" }
|
"cacheVariables": {
|
||||||
|
"PDFENGINE_WITH_PDFIUM": "ON",
|
||||||
|
"PDFENGINE_WITH_QPDF": "ON"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"buildPresets": [
|
"buildPresets": [
|
||||||
|
|||||||
@@ -564,7 +564,9 @@ function App() {
|
|||||||
const parentOrigin = urlParams.get('parent_origin') || import.meta.env.VITE_PARENT_ORIGIN || '*';
|
const parentOrigin = urlParams.get('parent_origin') || import.meta.env.VITE_PARENT_ORIGIN || '*';
|
||||||
window.parent.postMessage({ type: 'REMOTE_SAVE_COMPLETE' }, parentOrigin);
|
window.parent.postMessage({ type: 'REMOTE_SAVE_COMPLETE' }, parentOrigin);
|
||||||
} else {
|
} else {
|
||||||
await gatewayService.exportDocument(selectedDocId, activeDoc.filename);
|
// When running locally outside an iframe, edits are already auto-saved to the gateway DB.
|
||||||
|
// We just simulate a save delay to provide UI feedback, instead of downloading the file.
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 600));
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Save failed', e);
|
console.error('Save failed', e);
|
||||||
@@ -682,7 +684,7 @@ function App() {
|
|||||||
canAssemble={can('canAssemble')}
|
canAssemble={can('canAssemble')}
|
||||||
onUpload={handleUpload}
|
onUpload={handleUpload}
|
||||||
onShowVersionHistory={() => setVersionHistoryModalOpen(true)}
|
onShowVersionHistory={() => setVersionHistoryModalOpen(true)}
|
||||||
onSave={handleSave}
|
onSave={isRemote ? handleSave : undefined}
|
||||||
isInspectorOpen={isInspectorOpen}
|
isInspectorOpen={isInspectorOpen}
|
||||||
onToggleInspector={toggleInspector}
|
onToggleInspector={toggleInspector}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 170 KiB |
Reference in New Issue
Block a user