From b19ff3dca4a2c464fe8c51be857d10607286dedb Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sat, 19 Feb 2022 09:16:54 +0100 Subject: [PATCH] added import/create buttons to empty search --- .../RecipeSearchView/RecipeSearchView.vue | 597 ++++++++++++------ vue/src/locales/en.json | 3 + 2 files changed, 414 insertions(+), 186 deletions(-) diff --git a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue index ac09ade02..7e31edd49 100644 --- a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue +++ b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue @@ -1,6 +1,6 @@ @@ -573,40 +742,48 @@ and don't contain - anyall of the following books: + anyall of the following books: {{ k.items.flatMap((x) => x.name).join(", ") }} -
+
- and you can make right now (based on the on hand flag)
+ and you can make right now (based on the on hand flag)
- and contain anyall of the following units: + and contain anyall of the following units: {{ search.search_units.flatMap((x) => x.name).join(", ") }}
+ >
- and have a rating or - equal to {{ search.search_rating }}
+ and have a rating or + equal to {{ search.search_rating }}
- and have been last cooked + and have been last cooked {{ search.lastcooked }}
+ >
- and have been cooked or - equal to{{ search.timescooked }} times
+ and have been cooked or + equal to{{ search.timescooked }} times
order by {{ search.sort_order.flatMap((x) => x.text).join(", ") }} -
+
@@ -617,64 +794,111 @@ -
-
- -
- 0"> +
+
+ +
+ - {{ o.text }} - -
-
-
-
+ > + {{ o.text }} + +
+ +
+
- {{ $t("Page") }} {{ search.pagination_page }}/{{ Math.ceil(pagination_count / ui.page_size) }} + {{ $t("Page") }} {{ search.pagination_page }}/{{ + Math.ceil(pagination_count / ui.page_size) + }} {{ $t("Reset") }} +
-
-
-
-
- - +
+
+
+ + +
+
+
+ +
+
+ +
+
+
+
+
+
+
+

{{ $t('search_no_recipes') }}

+
+ +
+ +
+
+ + + + {{ $t('search_import_help_text') }} + + + {{ $t('Import') }} + + + + + + {{ $t('search_create_help_text') }} + + + {{ $t('Create') }} + + +
- -
-
- -
-
-
+ +