Skip to content

Build your personal knowledge base with Trilium Notes

client: refactor

Adorian Doran58f5b1edf301
diff --git a/apps/client/src/menus/context_menu_utils.ts b/apps/client/src/menus/context_menu_utils.ts
index 70e6fcc4d8..68c09bacc7 100644
--- a/apps/client/src/menus/context_menu_utils.ts
+++ b/apps/client/src/menus/context_menu_utils.ts
@@ -3,16 +3,6 @@ import attributes from "../services/attributes"
import FNote from "../entities/fnote"
import { escapeHtml } from "../services/utils"
-/**
- * A name the user wrote, as a menu title.
- *
- * A menu reads a title as markup, so the name is escaped into the text it is meant to be, and boxed
- * so that `style.css` clips a long one rather than letting it widen the menu.
- */
-export function menuName(name: string) {
- return `<span class="tn-menu-name">${escapeHtml(name)}</span>`
-}
-
export function getArchiveMenuItem(note: FNote) {
if (!note.isArchived) {
return {
@@ -29,4 +19,14 @@ export function getArchiveMenuItem(note: FNote) {
}
}
}
-}
\ No newline at end of file
+}
+
+/**
+ * A name the user wrote, as a menu title.
+ *
+ * A menu reads a title as markup, so the name is escaped into the text it is meant to be, and boxed
+ * so that `style.css` clips a long one rather than letting it widen the menu.
+ */
+export function menuName(name: string) {
+ return `<span class="tn-menu-name">${escapeHtml(name)}</span>`
+}