diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-10-15 09:48:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 09:48:06 +0200 |
commit | 14d2364fc69e0222133115c55a36286986006098 (patch) | |
tree | 9e9b3c41ef742bbe87ca1632b292c67043051957 /src/stores/RecipePreviewsStore.js | |
parent | 5.6.3-nightly.34 [skip ci] (diff) | |
download | ferdium-app-14d2364fc69e0222133115c55a36286986006098.tar.gz ferdium-app-14d2364fc69e0222133115c55a36286986006098.tar.zst ferdium-app-14d2364fc69e0222133115c55a36286986006098.zip |
chore: update eslint setup (#2074)
Diffstat (limited to 'src/stores/RecipePreviewsStore.js')
-rw-r--r-- | src/stores/RecipePreviewsStore.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/stores/RecipePreviewsStore.js b/src/stores/RecipePreviewsStore.js index f4e39306c..e01e8fc6f 100644 --- a/src/stores/RecipePreviewsStore.js +++ b/src/stores/RecipePreviewsStore.js | |||
@@ -5,9 +5,15 @@ import CachedRequest from './lib/CachedRequest'; | |||
5 | import Request from './lib/Request'; | 5 | import Request from './lib/Request'; |
6 | 6 | ||
7 | export default class RecipePreviewsStore extends Store { | 7 | export default class RecipePreviewsStore extends Store { |
8 | @observable allRecipePreviewsRequest = new CachedRequest(this.api.recipePreviews, 'all'); | 8 | @observable allRecipePreviewsRequest = new CachedRequest( |
9 | this.api.recipePreviews, | ||
10 | 'all', | ||
11 | ); | ||
9 | 12 | ||
10 | @observable searchRecipePreviewsRequest = new Request(this.api.recipePreviews, 'search'); | 13 | @observable searchRecipePreviewsRequest = new Request( |
14 | this.api.recipePreviews, | ||
15 | 'search', | ||
16 | ); | ||
11 | 17 | ||
12 | constructor(...args) { | 18 | constructor(...args) { |
13 | super(...args); | 19 | super(...args); |
@@ -25,7 +31,7 @@ export default class RecipePreviewsStore extends Store { | |||
25 | } | 31 | } |
26 | 32 | ||
27 | @computed get dev() { | 33 | @computed get dev() { |
28 | return this.stores.recipes.all.filter((r) => r.local); | 34 | return this.stores.recipes.all.filter(r => r.local); |
29 | } | 35 | } |
30 | 36 | ||
31 | // Actions | 37 | // Actions |