diff --git a/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx b/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx index 36fef6b3d..c26ac51bb 100644 --- a/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx +++ b/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx @@ -33,7 +33,7 @@ export default function SearchDefinitionTab({ note, ntxId }: TabContext) { const activeOptions: SearchOption[] = []; for (const searchOption of SEARCH_OPTIONS) { - const attr = note.getAttribute(searchOption.attributeType, searchOption.attributeName); + const attr = note.getAttribute(searchOption.attributeType, searchOption.attributeName); if (attr) { activeOptions.push(searchOption); } else { @@ -75,24 +75,26 @@ export default function SearchDefinitionTab({ note, ntxId }: TabContext) { return (
- {note && + {note && - - - + + + - + + + + {searchOptions?.activeOptions.map(({ attributeType, attributeName, component, additionalAttributesToDelete, defaultValue }) => { const Component = component; @@ -125,7 +127,7 @@ export default function SearchDefinitionTab({ note, ntxId }: TabContext) { onClick={async () => { await server.post(`search-and-execute-note/${note.noteId}`); refreshResults(); - toast.showMessage(t("search_definition.actions_executed"), 3000); + toast.showMessage(t("search_definition.actions_executed"), 3000); }} /> @@ -196,9 +198,9 @@ function AddBulkActionButton({ note }: { note: FNote }) { {actions.map(({ actionName, actionTitle }) => ( bulk_action.addAction(note.noteId, actionName)}>{actionTitle} - ))} + ))} ))} ) -} \ No newline at end of file +}
{t("search_definition.add_search_option")} - {searchOptions?.availableOptions.map(({ icon, label, tooltip, attributeName, attributeType, defaultValue }) => ( -
{t("search_definition.add_search_option")} + {searchOptions?.availableOptions.map(({ icon, label, tooltip, attributeName, attributeType, defaultValue }) => ( +