mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-27 09:24:06 +01:00
This commit is contained in:
parent
9cae635647
commit
4bc21c493b
8 changed files with 12 additions and 13 deletions
|
|
@ -136,14 +136,14 @@ export const workspaceMenu = (rect: DOMRect) => {
|
|||
showMessage(window.siyuan.languages.duplicate);
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
if (hadName) {
|
||||
return;
|
||||
}
|
||||
window.siyuan.storage[Constants.LOCAL_LAYOUTS].push({
|
||||
name: value,
|
||||
layout: exportLayout(false, undefined, true)
|
||||
})
|
||||
});
|
||||
setStorageVal(Constants.LOCAL_LAYOUTS, window.siyuan.storage[Constants.LOCAL_LAYOUTS]);
|
||||
saveDialog.destroy();
|
||||
});
|
||||
|
|
@ -169,7 +169,7 @@ export const workspaceMenu = (rect: DOMRect) => {
|
|||
setStorageVal(Constants.LOCAL_LAYOUTS, window.siyuan.storage[Constants.LOCAL_LAYOUTS]);
|
||||
return true;
|
||||
}
|
||||
})
|
||||
});
|
||||
return;
|
||||
}
|
||||
fetchPost("/api/system/setUILayout", {layout: item.layout}, () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue