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/models/RecipePreview.js | |
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/models/RecipePreview.js')
-rw-r--r-- | src/models/RecipePreview.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/models/RecipePreview.js b/src/models/RecipePreview.js index 7a37ccb56..6a9ce3080 100644 --- a/src/models/RecipePreview.js +++ b/src/models/RecipePreview.js | |||
@@ -9,6 +9,8 @@ export default class RecipePreview { | |||
9 | 9 | ||
10 | featured = false; | 10 | featured = false; |
11 | 11 | ||
12 | aliases = []; | ||
13 | |||
12 | constructor(data) { | 14 | constructor(data) { |
13 | if (!data.id) { | 15 | if (!data.id) { |
14 | throw Error('RecipePreview requires Id'); | 16 | throw Error('RecipePreview requires Id'); |