mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 10:50:15 +01:00
This commit is contained in:
parent
bb49855133
commit
6930d48446
4 changed files with 9 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import {MenuItem} from "./Menu";
|
||||
import {saveLayout} from "../layout/util";
|
||||
|
||||
const moveMenuItem = (label: string, target: Element) => {
|
||||
return new MenuItem({
|
||||
|
|
@ -12,6 +13,7 @@ const moveMenuItem = (label: string, target: Element) => {
|
|||
} else if (label.indexOf("moveToBottom") > -1) {
|
||||
window.siyuan.layout.bottomDock.add(label.endsWith("Left") ? 0 : 1, target);
|
||||
}
|
||||
saveLayout();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue