From 5d66b7e66f2db57b609cc538e5d0aeba560c6c2f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 20 Oct 2025 17:38:25 +0300 Subject: [PATCH] feat(client/search): enable collection properties --- apps/client/src/widgets/ribbon/Ribbon.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/ribbon/Ribbon.tsx b/apps/client/src/widgets/ribbon/Ribbon.tsx index e47a78aee..72c627988 100644 --- a/apps/client/src/widgets/ribbon/Ribbon.tsx +++ b/apps/client/src/widgets/ribbon/Ribbon.tsx @@ -1,6 +1,6 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks"; import { t } from "../../services/i18n"; -import { useNoteContext, useNoteProperty, useStaticTooltip, useStaticTooltipWithKeyboardShortcut, useTooltip, useTriliumEvent, useTriliumEvents } from "../react/hooks"; +import { useNoteContext, useNoteProperty, useStaticTooltipWithKeyboardShortcut, useTriliumEvents } from "../react/hooks"; import "./style.css"; import { VNode } from "preact"; import BasicPropertiesTab from "./BasicPropertiesTab"; @@ -24,7 +24,6 @@ import InheritedAttributesTab from "./InheritedAttributesTab"; import CollectionPropertiesTab from "./CollectionPropertiesTab"; import SearchDefinitionTab from "./SearchDefinitionTab"; import NoteActions from "./NoteActions"; -import keyboard_actions from "../../services/keyboard_actions"; import { KeyboardActionNames } from "@triliumnext/commons"; interface TitleContext { @@ -81,7 +80,7 @@ const TAB_CONFIGURATION = numberObjectsInPlace([ title: t("book_properties.book_properties"), icon: "bx bx-book", content: CollectionPropertiesTab, - show: ({ note }) => note?.type === "book", + show: ({ note }) => note?.type === "book" || note?.type === "search", toggleCommand: "toggleRibbonTabBookProperties" }, {