diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-08-12 14:50:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 20:20:41 +0530 |
commit | 10e706230f11606a83a86837c820a6c338d29a4f (patch) | |
tree | 9862aaae7d6a3a0be97bfda68739d3036f0f7848 /src/containers/settings | |
parent | Update recipes for bringing in darkmode support for: (diff) | |
download | ferdium-app-10e706230f11606a83a86837c820a6c338d29a4f.tar.gz ferdium-app-10e706230f11606a83a86837c820a6c338d29a4f.tar.zst ferdium-app-10e706230f11606a83a86837c820a6c338d29a4f.zip |
Services now support aliases!!!! (#1774)
Users can now search for the services not only based on the name, but also the alias (partial match,
case-insensitive), when adding new services.
fixes #1614, #1615, #1291
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/RecipesScreen.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/containers/settings/RecipesScreen.js b/src/containers/settings/RecipesScreen.js index ff3c688fa..52bf31383 100644 --- a/src/containers/settings/RecipesScreen.js +++ b/src/containers/settings/RecipesScreen.js | |||
@@ -128,7 +128,7 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
128 | // All search recipes from local recipes | 128 | // All search recipes from local recipes |
129 | ...this.createPreviews( | 129 | ...this.createPreviews( |
130 | this.customRecipes | 130 | this.customRecipes |
131 | .filter((service) => service.name.toLowerCase().includes(this.state.needle.toLowerCase())), | 131 | .filter((service) => service.name.toLowerCase().includes(this.state.needle.toLowerCase()) || (service.aliases || []).some(alias => alias.toLowerCase().includes(this.state.needle.toLowerCase()))), |
132 | ), | 132 | ), |
133 | ]) : recipeFilter; | 133 | ]) : recipeFilter; |
134 | 134 | ||