mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 07:49:13 +08:00
This commit is contained in:
parent
55f8c8bb38
commit
49c2e407d8
@ -338,7 +338,9 @@ export const workspaceMenu = (app: App, rect: DOMRect) => {
|
|||||||
if (window.siyuan.storage[Constants.LOCAL_LAYOUTS].length > 0) {
|
if (window.siyuan.storage[Constants.LOCAL_LAYOUTS].length > 0) {
|
||||||
layoutSubMenu.push({id: "separator_1", type: "separator"});
|
layoutSubMenu.push({id: "separator_1", type: "separator"});
|
||||||
}
|
}
|
||||||
window.siyuan.storage[Constants.LOCAL_LAYOUTS].forEach((item: ISaveLayout) => {
|
window.siyuan.storage[Constants.LOCAL_LAYOUTS].sort((a: { name: string }, b: { name: string }) => {
|
||||||
|
return b.name > a.name ? -1 : 1;
|
||||||
|
}).forEach((item: ISaveLayout) => {
|
||||||
layoutSubMenu.push({
|
layoutSubMenu.push({
|
||||||
iconHTML: "",
|
iconHTML: "",
|
||||||
action: "iconEdit",
|
action: "iconEdit",
|
||||||
|
Loading…
Reference in New Issue
Block a user