mirror of
https://github.com/zadam/trilium.git
synced 2025-11-30 04:24:24 +01:00
client/note menu: use proper style for development-only actions section header
This commit is contained in:
parent
cc71f15700
commit
b8748b856a
@ -1,5 +1,5 @@
|
|||||||
import { ConvertToAttachmentResponse } from "@triliumnext/commons";
|
import { ConvertToAttachmentResponse } from "@triliumnext/commons";
|
||||||
import { FormDropdownDivider, FormListItem } from "../react/FormList";
|
import { FormDropdownDivider, FormListHeader, FormListItem } from "../react/FormList";
|
||||||
import { isElectron as getIsElectron, isMac as getIsMac } from "../../services/utils";
|
import { isElectron as getIsElectron, isMac as getIsMac } from "../../services/utils";
|
||||||
import { ParentComponent } from "../react/react_utils";
|
import { ParentComponent } from "../react/react_utils";
|
||||||
import { t } from "../../services/i18n"
|
import { t } from "../../services/i18n"
|
||||||
@ -113,8 +113,7 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not
|
|||||||
function DevelopmentActions({ note }: { note: FNote }) {
|
function DevelopmentActions({ note }: { note: FNote }) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<FormDropdownDivider />
|
<FormListHeader text="Development-only Actions" />
|
||||||
<FormListItem disabled>Development-only Actions</FormListItem>
|
|
||||||
<FormListItem
|
<FormListItem
|
||||||
icon="bx bx-printer"
|
icon="bx bx-printer"
|
||||||
onClick={() => window.open(`/?print=#root/${note.noteId}`, "_blank")}
|
onClick={() => window.open(`/?print=#root/${note.noteId}`, "_blank")}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user