mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 10:40:41 +01:00
chore(react/ribbon): port include archived notes
This commit is contained in:
@@ -77,7 +77,8 @@ const SEARCH_OPTIONS: SearchOption[] = [
|
||||
attributeType: "label",
|
||||
icon: "bx bx-archive",
|
||||
label: t("search_definition.include_archived"),
|
||||
tooltip: t("search_definition.include_archived_notes_description")
|
||||
tooltip: t("search_definition.include_archived_notes_description"),
|
||||
component: IncludeArchivedNotesOption
|
||||
},
|
||||
{
|
||||
attributeName: "orderBy",
|
||||
@@ -428,4 +429,11 @@ function DebugOption({ ...restProps }: SearchOptionProps) {
|
||||
</>}
|
||||
{...restProps}
|
||||
/>
|
||||
}
|
||||
|
||||
function IncludeArchivedNotesOption({ ...restProps }: SearchOptionProps) {
|
||||
return <SearchOption
|
||||
titleIcon="bx bx-archive" title={t("include_archived_notes.include_archived_notes")}
|
||||
{...restProps}
|
||||
/>
|
||||
}
|
||||
Reference in New Issue
Block a user