mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 03:59:05 +01:00
feat(client/search): enable collection properties
This commit is contained in:
parent
f8066417d9
commit
5d66b7e66f
@ -1,6 +1,6 @@
|
|||||||
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
||||||
import { t } from "../../services/i18n";
|
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 "./style.css";
|
||||||
import { VNode } from "preact";
|
import { VNode } from "preact";
|
||||||
import BasicPropertiesTab from "./BasicPropertiesTab";
|
import BasicPropertiesTab from "./BasicPropertiesTab";
|
||||||
@ -24,7 +24,6 @@ import InheritedAttributesTab from "./InheritedAttributesTab";
|
|||||||
import CollectionPropertiesTab from "./CollectionPropertiesTab";
|
import CollectionPropertiesTab from "./CollectionPropertiesTab";
|
||||||
import SearchDefinitionTab from "./SearchDefinitionTab";
|
import SearchDefinitionTab from "./SearchDefinitionTab";
|
||||||
import NoteActions from "./NoteActions";
|
import NoteActions from "./NoteActions";
|
||||||
import keyboard_actions from "../../services/keyboard_actions";
|
|
||||||
import { KeyboardActionNames } from "@triliumnext/commons";
|
import { KeyboardActionNames } from "@triliumnext/commons";
|
||||||
|
|
||||||
interface TitleContext {
|
interface TitleContext {
|
||||||
@ -81,7 +80,7 @@ const TAB_CONFIGURATION = numberObjectsInPlace<TabConfiguration>([
|
|||||||
title: t("book_properties.book_properties"),
|
title: t("book_properties.book_properties"),
|
||||||
icon: "bx bx-book",
|
icon: "bx bx-book",
|
||||||
content: CollectionPropertiesTab,
|
content: CollectionPropertiesTab,
|
||||||
show: ({ note }) => note?.type === "book",
|
show: ({ note }) => note?.type === "book" || note?.type === "search",
|
||||||
toggleCommand: "toggleRibbonTabBookProperties"
|
toggleCommand: "toggleRibbonTabBookProperties"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user