client/menus: refactor

This commit is contained in:
Adorian Doran
2025-09-20 00:34:25 +03:00
parent 17e87278eb
commit b26803b627
12 changed files with 35 additions and 35 deletions

View File

@@ -24,7 +24,7 @@ export default function MobileDetailMenu() {
items: [
{ title: t("mobile_detail_menu.insert_child_note"), command: "insertChildNote", uiIcon: "bx bx-plus", enabled: note?.type !== "search" },
{ title: t("mobile_detail_menu.delete_this_note"), command: "delete", uiIcon: "bx bx-trash", enabled: note?.noteId !== "root" },
{ title: "----" },
{ kind: "separator" },
{ title: "Note revisions", command: "showRevisions", uiIcon: "bx bx-history" }
],
selectMenuItemHandler: async ({ command }) => {