mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
358bf75238
commit
26e6b23887
5 changed files with 25 additions and 9 deletions
|
|
@ -14,6 +14,7 @@ import {confirmDialog} from "../../dialog/confirmDialog";
|
|||
import {openHistory} from "../../history/history";
|
||||
import {Dialog} from "../../dialog";
|
||||
import {syncGuide} from "../../sync/syncGuide";
|
||||
import {openCard} from "../../card/openCard";
|
||||
|
||||
const showAccountInfo = (modelElement: HTMLElement, modelMainElement: Element) => {
|
||||
closePanel();
|
||||
|
|
@ -124,6 +125,9 @@ export const popMenu = () => {
|
|||
<div id="menuNewDaily" class="b3-list-item b3-list-item--big">
|
||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconCalendar"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.dailyNote}</span>
|
||||
</div>
|
||||
<div id="menuCard" class="b3-list-item b3-list-item--big">
|
||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconRiffCard"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.riffCard}</span>
|
||||
</div>
|
||||
<div class="b3-list-item b3-list-item--big" id="menuNewNotebook">
|
||||
<svg class="b3-list-item__graphic"><use xlink:href="#iconFilesRoot"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newNotebook}</span>
|
||||
</div>
|
||||
|
|
@ -416,6 +420,11 @@ ${accountHTML}
|
|||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (target.id === "menuCard") {
|
||||
openCard();
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (target.id === "menuNewNotebook") {
|
||||
newNotebook();
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue