diff options
author | 2022-01-02 00:40:42 +0100 | |
---|---|---|
committer | 2022-01-02 00:40:42 +0100 | |
commit | 55dd67d28e691338b4ecbe928436c4f2a41ad5cb (patch) | |
tree | b73fa0fb7398673c936888f72c8027456bfb463f /src/components | |
parent | Revert "Removed 'Most Popular' services since it alludes to user-tracking (#1... (diff) | |
download | ferdium-app-55dd67d28e691338b4ecbe928436c4f2a41ad5cb.tar.gz ferdium-app-55dd67d28e691338b4ecbe928436c4f2a41ad5cb.tar.zst ferdium-app-55dd67d28e691338b4ecbe928436c4f2a41ad5cb.zip |
Revert "Removed straggling code related to popular services."
This reverts commit a9c1abc6f11cb193388fad505c0304f1efe60a30.
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/settings/recipes/RecipesDashboard.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/settings/recipes/RecipesDashboard.js b/src/components/settings/recipes/RecipesDashboard.js index 2d0d83376..96207445c 100644 --- a/src/components/settings/recipes/RecipesDashboard.js +++ b/src/components/settings/recipes/RecipesDashboard.js | |||
@@ -114,6 +114,7 @@ class RecipesDashboard extends Component { | |||
114 | recipes: MobxPropTypes.arrayOrObservableArray.isRequired, | 114 | recipes: MobxPropTypes.arrayOrObservableArray.isRequired, |
115 | customWebsiteRecipe: PropTypes.instanceOf(RecipePreview).isRequired, | 115 | customWebsiteRecipe: PropTypes.instanceOf(RecipePreview).isRequired, |
116 | isLoading: PropTypes.bool.isRequired, | 116 | isLoading: PropTypes.bool.isRequired, |
117 | hasLoadedRecipes: PropTypes.bool.isRequired, | ||
117 | showAddServiceInterface: PropTypes.func.isRequired, | 118 | showAddServiceInterface: PropTypes.func.isRequired, |
118 | searchRecipes: PropTypes.func.isRequired, | 119 | searchRecipes: PropTypes.func.isRequired, |
119 | resetSearch: PropTypes.func.isRequired, | 120 | resetSearch: PropTypes.func.isRequired, |
@@ -136,6 +137,7 @@ class RecipesDashboard extends Component { | |||
136 | recipes, | 137 | recipes, |
137 | customWebsiteRecipe, | 138 | customWebsiteRecipe, |
138 | isLoading, | 139 | isLoading, |
140 | hasLoadedRecipes, | ||
139 | showAddServiceInterface, | 141 | showAddServiceInterface, |
140 | searchRecipes, | 142 | searchRecipes, |
141 | resetSearch, | 143 | resetSearch, |
@@ -255,7 +257,7 @@ class RecipesDashboard extends Component { | |||
255 | /> | 257 | /> |
256 | ))} | 258 | ))} |
257 | </div> | 259 | </div> |
258 | {recipes.length === 0 && recipeFilter !== 'dev' && ( | 260 | {hasLoadedRecipes && recipes.length === 0 && recipeFilter !== 'dev' && ( |
259 | <div className="align-middle settings__empty-state"> | 261 | <div className="align-middle settings__empty-state"> |
260 | {customWebsiteRecipe && customWebsiteRecipe.id && ( | 262 | {customWebsiteRecipe && customWebsiteRecipe.id && ( |
261 | <RecipeItem | 263 | <RecipeItem |