|
@@ -57,31 +57,33 @@ export const openTitleMenu = (protyle: IProtyle, position: IPosition) => {
|
|
}).element);
|
|
}).element);
|
|
}
|
|
}
|
|
/// #if !MOBILE
|
|
/// #if !MOBILE
|
|
- window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
|
|
|
- window.siyuan.menus.menu.append(new MenuItem({
|
|
|
|
- icon: "iconAlignCenter",
|
|
|
|
- label: window.siyuan.languages.outline,
|
|
|
|
- accelerator: window.siyuan.config.keymap.editor.general.outline.custom,
|
|
|
|
- click: () => {
|
|
|
|
- openOutline(protyle);
|
|
|
|
- }
|
|
|
|
- }).element);
|
|
|
|
- window.siyuan.menus.menu.append(new MenuItem({
|
|
|
|
- icon: "iconLink",
|
|
|
|
- label: window.siyuan.languages.backlinks,
|
|
|
|
- accelerator: window.siyuan.config.keymap.editor.general.backlinks.custom,
|
|
|
|
- click: () => {
|
|
|
|
- openBacklink(protyle);
|
|
|
|
- }
|
|
|
|
- }).element);
|
|
|
|
- window.siyuan.menus.menu.append(new MenuItem({
|
|
|
|
- icon: "iconGraph",
|
|
|
|
- label: window.siyuan.languages.graphView,
|
|
|
|
- accelerator: window.siyuan.config.keymap.editor.general.graphView.custom,
|
|
|
|
- click: () => {
|
|
|
|
- openGraph(protyle);
|
|
|
|
- }
|
|
|
|
- }).element);
|
|
|
|
|
|
+ if (protyle.model) {
|
|
|
|
+ window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
|
|
|
+ window.siyuan.menus.menu.append(new MenuItem({
|
|
|
|
+ icon: "iconAlignCenter",
|
|
|
|
+ label: window.siyuan.languages.outline,
|
|
|
|
+ accelerator: window.siyuan.config.keymap.editor.general.outline.custom,
|
|
|
|
+ click: () => {
|
|
|
|
+ openOutline(protyle);
|
|
|
|
+ }
|
|
|
|
+ }).element);
|
|
|
|
+ window.siyuan.menus.menu.append(new MenuItem({
|
|
|
|
+ icon: "iconLink",
|
|
|
|
+ label: window.siyuan.languages.backlinks,
|
|
|
|
+ accelerator: window.siyuan.config.keymap.editor.general.backlinks.custom,
|
|
|
|
+ click: () => {
|
|
|
|
+ openBacklink(protyle);
|
|
|
|
+ }
|
|
|
|
+ }).element);
|
|
|
|
+ window.siyuan.menus.menu.append(new MenuItem({
|
|
|
|
+ icon: "iconGraph",
|
|
|
|
+ label: window.siyuan.languages.graphView,
|
|
|
|
+ accelerator: window.siyuan.config.keymap.editor.general.graphView.custom,
|
|
|
|
+ click: () => {
|
|
|
|
+ openGraph(protyle);
|
|
|
|
+ }
|
|
|
|
+ }).element);
|
|
|
|
+ }
|
|
/// #endif
|
|
/// #endif
|
|
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
|
window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);
|
|
window.siyuan.menus.menu.append(new MenuItem({
|
|
window.siyuan.menus.menu.append(new MenuItem({
|