From dcee692caf7a0f2fa7a06d793a9b9df4467be5c9 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 19 Nov 2023 00:40:24 +0100 Subject: [PATCH] [client] Add in:favorites and in:bookmarks to FTS filter menu --- locales/en-US.yml | 2 ++ packages/client/src/components/MkSearch.vue | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/locales/en-US.yml b/locales/en-US.yml index fc1a8646c..de2861fc7 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1505,6 +1505,8 @@ _filters: fromUser: "From user" replyTo: "Replying to" mentioning: "Mentioning" + inFavorites: "Favorited" + inBookmarks: "Bookmarked" withFile: "Has attachment" fromDomain: "Specific instance only" notesBefore: "Posts before" diff --git a/packages/client/src/components/MkSearch.vue b/packages/client/src/components/MkSearch.vue index 85448ff46..96ade498a 100644 --- a/packages/client/src/components/MkSearch.vue +++ b/packages/client/src/components/MkSearch.vue @@ -88,6 +88,21 @@ async function openSearchFilters(ev) { }, }, null, + { + icon: "ph-star ph-bold ph-lg", + text: i18n.ts._filters.inFavorites, + action: () => { + appendSearchFilter("in:favorites"); + }, + }, + { + icon: "ph-bookmark-simple ph-bold ph-lg", + text: i18n.ts._filters.inBookmarks, + action: () => { + appendSearchFilter("in:bookmarks"); + }, + }, + null, { type: "parent", text: i18n.ts._filters.withFile,