mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 21:48:06 +01:00
This commit is contained in:
parent
7a68c8ad1b
commit
f06a2e62a5
11 changed files with 175 additions and 71 deletions
|
|
@ -137,7 +137,11 @@ export const workspaceMenu = (app:App, rect: DOMRect) => {
|
|||
if (item.name === value) {
|
||||
saveDialog.destroy();
|
||||
confirmDialog(window.siyuan.languages.save, window.siyuan.languages.exportTplTip, () => {
|
||||
item.layout = exportLayout(false, undefined, true);
|
||||
item.layout = exportLayout({
|
||||
reload: false,
|
||||
onlyData: true,
|
||||
errorExit: false,
|
||||
});
|
||||
setStorageVal(Constants.LOCAL_LAYOUTS, window.siyuan.storage[Constants.LOCAL_LAYOUTS]);
|
||||
});
|
||||
return true;
|
||||
|
|
@ -148,7 +152,11 @@ export const workspaceMenu = (app:App, rect: DOMRect) => {
|
|||
}
|
||||
window.siyuan.storage[Constants.LOCAL_LAYOUTS].push({
|
||||
name: value,
|
||||
layout: exportLayout(false, undefined, true)
|
||||
layout: exportLayout({
|
||||
reload: false,
|
||||
onlyData: true,
|
||||
errorExit: false,
|
||||
})
|
||||
});
|
||||
setStorageVal(Constants.LOCAL_LAYOUTS, window.siyuan.storage[Constants.LOCAL_LAYOUTS]);
|
||||
saveDialog.destroy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue